connect icon indicating copy to clipboard operation
connect copied to clipboard

Getting error 'WalletConnect cannot be invoked without 'new'

Open AlgorandDev opened this issue 2 years ago • 2 comments

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. (index.4b62f2d5.js:1850:12595) at Generator.next () at V (index.4b62f2d5.js:1850:1374)"

Anything i may be doing wrong?

AlgorandDev avatar Jan 10 '23 01:01 AlgorandDev

+1 to this. Trying to figure out what part of the build process is causing this.

MacroChip avatar Mar 14 '23 21:03 MacroChip

Upgrading to vite 4 from vite 3 fixed this for me

MacroChip avatar Mar 14 '23 23:03 MacroChip