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

turboMode and babelMultiThread experimentals can't be used at the same time #24767

Closed
Aviortheking opened this issue May 3, 2021 · 2 comments · Fixed by #24776
Closed

turboMode and babelMultiThread experimentals can't be used at the same time #24767

Aviortheking opened this issue May 3, 2021 · 2 comments · Fixed by #24776
Labels
bug Issue was opened via the bug report template.

Comments

@Aviortheking
Copy link

What version of Next.js are you using?

10.2.0

What version of Node.js are you using?

14.15.4

What browser are you using?

not related

What operating system are you using?

Windows

How are you deploying your application?

next build

Describe the Bug

When I tried playing with the experimental I was not able to build my application when bother turboMode and babelMultiThread were enabled

I have a basic custom App (only changing the render method)

Error occurred prerendering page "/***". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: (0 , jsx_dev_runtime_.jsxDEV) is not a function
    at MyApp.render (D:\git\***\website\.next\server\pages\_app.js:1077:58)
    at d (D:\git\***\website\node_modules\react-dom\cjs\react-dom-server.node.production.min.js:35:231)
    at bb (D:\git\***\website\node_modules\react-dom\cjs\react-dom-server.node.production.min.js:36:16)
    at a.b.render (D:\git\***\website\node_modules\react-dom\cjs\react-dom-server.node.production.min.js:42:43)
    at a.b.read (D:\git\***\website\node_modules\react-dom\cjs\react-dom-server.node.production.min.js:41:83)
    at exports.renderToString (D:\git\***\website\node_modules\react-dom\cjs\react-dom-server.node.production.min.js:52:138)
    at Object.renderPage (D:\git\**\website\node_modules\next\dist\next-server\server\render.js:54:854)
    at Function.getInitialProps (D:\git\***\website\.next\server\pages\_document.js:491:19)
    at loadGetInitialProps (D:\git\***\website\node_modules\next\dist\next-server\lib\utils.js:5:101)
    at renderToHTML (D:\git\***\website\node_modules\next\dist\next-server\server\render.js:54:1145)

Expected Behavior

next build should successfully build the application

To Reproduce

  • create a NextJS application that have static prerendered pages
  • set both turboMode and babelMultiThread to true
  • run next build
  • see the error
@Aviortheking Aviortheking added the bug Issue was opened via the bug report template. label May 3, 2021
@timneutkens
Copy link
Member

This is correct, you shouldn't use babelMultiThread as it's an experiment.

@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

Successfully merging a pull request may close this issue.

3 participants