Skip to content

Reproduction case of build failure "SyntaxError: Unexpected token '한', ..."his),\": \한\\uAD6D\\"... is not valid JSON"

Notifications You must be signed in to change notification settings

kdy1/repro-test-mdx-korean

 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

To reproduce issue

  • Run npm run build
  • Notice the output (build failed)
   Collecting page data ..SyntaxError: Unexpected token '한', ..."his),\": \한\\uAD6D\\"... is not valid JSON
    at JSON.parse (<anonymous>)
    at 6560 (/Users/shaneafsar/workspace/test-mdx-korean/.next/server/app/[...slug]/page.js:1:2492)
    at Function.t (/Users/shaneafsar/workspace/test-mdx-korean/.next/server/webpack-runtime.js:1:127)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async collectGenerateParams (/Users/shaneafsar/workspace/test-mdx-korean/node_modules/next/dist/build/utils.js:859:17)

Expected result

  • Downgrade to 13.4.11 via npm install next@13.4.11
  • Run npm run build
  • Notice successful build

About

Reproduction case of build failure "SyntaxError: Unexpected token '한', ..."his),\": \한\\uAD6D\\"... is not valid JSON"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 53.3%
  • MDX 39.7%
  • CSS 4.8%
  • JavaScript 2.2%