Skip to content
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

Upgrading to Next 11 causes "Unexpected token / in JSON at position 0" #26156

Closed
HassaanShah016 opened this issue Jun 16, 2021 · 5 comments
Closed
Labels
bug Issue was opened via the bug report template.

Comments

@HassaanShah016
Copy link

HassaanShah016 commented Jun 16, 2021

What version of Next.js are you using?

11

What version of Node.js are you using?

15.14

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying your application?

Next Start

Describe the Bug

Dependency List
{ "name": "frontend-proj", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "next dev", "build": "next build", "start": "next start" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.35", "@fortawesome/free-solid-svg-icons": "^5.15.3", "@fortawesome/react-fontawesome": "^0.1.14", "@iktakahiro/markdown-it-katex": "^4.0.1", "@sendgrid/mail": "^7.4.4", "bootstrap": "^4.6.0", "cogo-toast": "^4.2.3", "date-fns": "^2.22.1", "es6-promise": "^4.2.8", "highlight.js": "^10.7.3", "isomorphic-fetch": "^3.0.0", "js-cookie": "^2.2.1", "jsonwebtoken": "^8.5.1", "katex": "^0.12.0", "markdown-it": "^12.0.6", "markdown-it-emoji": "^2.0.0", "nanoid": "^3.1.23", "next": "^11.0.0", "nprogress": "^0.2.0", "prop-types": "^15.7.2", "query-string": "^6.14.1", "quill-better-table": "^1.2.10", "react": "^17.0.2", "react-dom": "^17.0.2", "react-google-login": "^5.2.2", "react-icons": "^4.2.0", "react-markdown-editor-lite": "^1.2.4", "react-multi-carousel": "^2.6.3", "react-quill": "^2.0.0-beta.2", "react-render-html": "^0.6.0", "react-timeout": "^2.0.1", "reactstrap": "^8.9.0", "sass": "^1.35.1", "styled-components": "^5.3.0" }, "devDependencies": { "@svgr/cli": "^5.5.0", "babel-plugin-inline-react-svg": "^2.0.1", "babel-plugin-styled-components": "^1.12.0" } }

Upgrading to Next 11 causes "Unexpected token / in JSON at position 0":

Error - ./node_modules/next/dist/client/dev/amp-dev.js
SyntaxError: Unexpected token / in JSON at position 0
at JSON.parse ()

Expected Behavior

The upgrade procedure should work out of the box. As the same application was working fine with NextJs 10.2 release

To Reproduce

The upgrade procedure should work out of the box. As the same application was working fine with NextJs 10.2 release

@HassaanShah016 HassaanShah016 added the bug Issue was opened via the bug report template. label Jun 16, 2021
@shenghanqin
Copy link

Me too.

@myeongwon
Copy link

Me too 222

@timneutkens
Copy link
Member

Duplicate of #26163

@timneutkens timneutkens marked this as a duplicate of #26163 Jun 16, 2021
@HassaanShah016
Copy link
Author

@timneutkens What's the solution ?

@balazsorban44
Copy link
Member

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.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

5 participants