-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module exports { default, __esModule } #17
Comments
I think this is kind of expected behaviour, has something to do with the conversion of CJS -> ES though I think this is based on the build system of WalletConnect instead of on ESM's side |
Thanks, any idea how I can reconcile my editor and the browser? |
I did this workaround import WalletConnectModule from "https://cdn.esm.sh/v15/@walletconnect/web3-provider@1.3.4/esnext/web3-provider.js"
import WalletConnectProvider from "https://cdn.esm.sh/v15/@walletconnect/web3-provider@1.3.4/dist/cjs/index.d.ts"
const WalletConnect: typeof WalletConnectProvider = WalletConnectModule.default |
Yup, it has to do with the fact that WalletConnect isn't shipping ES modules and instead they are using Webpack + TS to convert their ES source code into CJS which is published. This causes |
Okay thanks |
When importing the default export from WalletConnect
Which is a class in my editor
However, when deploying (aleph dev) I get the following object instead
The text was updated successfully, but these errors were encountered: