connect
connect copied to clipboard
Getting error 'WalletConnect cannot be invoked without 'new'
Hi team and thanks for your incredibile work.
While i have no problems establishing a wallet connection locally and it works smoothly, i get the following error if my svelte app is deployed on vercel/netlify: "PeraWalletConnectError: Class constructor WalletConnect cannot be invoked without 'new'"
On the console:
"TypeError: Class constructor WalletConnect cannot be invoked without 'new'
at new r (index.4b62f2d5.js:10:2232)
at index2368cd55.PeraWalletConnect.
Anything i may be doing wrong?
+1 to this. Trying to figure out what part of the build process is causing this.
Upgrading to vite 4 from vite 3 fixed this for me