Uncaught SyntaxError
I am on the latest version 1.3.8. and getting this error causing the whole app screen to go blank. I installed and uninstalled it , downgraded and reversed it still the same problem. Am using react vite and express. Found it in the console
Uncaught SyntaxError: 'super' keyword unexpected here (at better-auth_client_plugins.js?v=94705b18:178:9)
8 Replies
Hello, I am having the same issue
Have you worked out a solution?
No I have not
@ping can we get help here please
Can you guys make a minimal reproduction of this?
I am using react vite and when bundling in npm run dev I get this error . I check the code and it's in the .vite in the node module.
This error is from the 1.3.8 version I moved to 1.3.7 now
Hello I found a GitHub issue with a solution
GitHub
SyntaxError: 'super' keyword unexpected · Issue #4457 · better-au...
Is this suited for github? Yes, this is suited for github To Reproduce I am seeing an issue with better-auth and Astro, running on Vite 7 with React. The error is: Specifically that SyntaxError: &#...
In my case it was an incompatibility between vite v6 and better auth client, and the router.
I updated all deps to the latest and that worked for me
It worked mine is working now thanks @dfrn