-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Unexpected token } in JSON #26131
Comments
Seems babelrc must be a valid JSON now - you have a trailing comma at the end. |
Babel uses JSON5 to parse |
Fix that, now getting this error:
|
I can't reproduce this on a bare instance of nextjs though, so I'm going to close this until I have more information. |
If anyone come across the same issue, I solved it by deleting my |
I had a commented line in |
This has been solved in |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
11
What version of Node.js are you using?
v14.16.1
What browser are you using?
Chrome
What operating system are you using?
macOs
How are you deploying your application?
Vercel
Describe the Bug
I've just upgraded to Next 11 from 10.2.3. When I try and run
yarn dev
I get:Expected Behavior
Server should run.
To Reproduce
I'm assuming it's a babel issue - here's my babelrc file:
The text was updated successfully, but these errors were encountered: