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
dfrn
dfrn2mo ago
Hello, I am having the same issue Have you worked out a solution?
Hunter
HunterOP5w ago
No I have not @ping can we get help here please
Ping
Ping5w ago
Can you guys make a minimal reproduction of this?
Hunter
HunterOP5w ago
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
dfrn
dfrn4w ago
Hello I found a GitHub issue with a solution
dfrn
dfrn4w ago
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: &#...
dfrn
dfrn4w ago
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
Hunter
HunterOP4w ago
It worked mine is working now thanks @dfrn

Did you find this page helpful?