-
Notifications
You must be signed in to change notification settings - Fork 65
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
TypeError: BeaconEvent is undefined in Vite v5 #668
Comments
Hi @BearCooder, |
Hello @IsaccoSordo thank you for the quick answer. I can provide you the whole template that my project is based on. Please clone it and install dependencies and try to run, it will work. But when you delete node modules and just change the Vite version to v5 in package json and install again. Then you will get the problem I described. A blank page and in browser console the error from above.. Even when beacon and taquito is updated to the latest version with Vite v5 I get the same :( |
Hi @BearCooder, |
Wow, changing the import from Can you please explain what the difference here is and why the old import worked fine in Vite v4 and now not anymore in Vite v5? |
I'm glad it worked out for you, I'm closing the issue. |
Thank you @IsaccoSordo but one last question. I just changed the import and did not run |
Hi @BearCoder, |
Describe the bug (current behavior)
I have a working dapp. The setup I use is React with Vite v4 together with taquito and Beacon.
Now after I updated Vite to their latest release v5 I get always a blank page and the error in the browser console:
TypeError: BeaconEvent is undefined.
Now when I click to show me source it is something not working in the beacon package I guess:
I cant even really fix it as I get no errors in my console in WSL when I start to run it locally. No errors, just a blank page appears and then a look in the browser console shows me this.
I use WSL with node v 20.9.0 and the latest taquito and beacon versions.
The text was updated successfully, but these errors were encountered: