Skip to content
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

Getting error 'WalletConnect cannot be invoked without 'new' #103

Open
AlgorandDev opened this issue Jan 10, 2023 · 2 comments
Open

Getting error 'WalletConnect cannot be invoked without 'new' #103

AlgorandDev opened this issue Jan 10, 2023 · 2 comments

Comments

@AlgorandDev
Copy link

AlgorandDev commented Jan 10, 2023

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?

@MacroChip
Copy link

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

@MacroChip
Copy link

Upgrading to vite 4 from vite 3 fixed this for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants