-
Notifications
You must be signed in to change notification settings - Fork 7
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
Safari IOS and MacOS. Unexpected private name #validate. #1
Comments
i removed the .next folder and let it rebuild. No changes. still same error. |
Hello Tim, I would like to help, but you haven't provided enough information. |
Full stack from safari on macos
|
https://caniuse.com/?search=private%20class 🤦 Apparently, Safari supports private class fields but not private class methods. Gonna put a warning on the README... I recommend using Babel |
Ok i have a fix.... using this npm next-transpile-modules. it can transpile this code to work. Also need to add to next.config.js for nextjs. here is mine.
Appears to work after all this. Onwards. |
I am getting the following on safari IOS and MacOS
Unhandled Runtime Error
SyntaxError: Unexpected private name #validate. Cannot parse class method with private name.
NextJS 11. Works fine on Chrome and Firefox.
Any ideas?
Thanks
Tim
The text was updated successfully, but these errors were encountered: