Skip to content

next start not working with React 17 on default create-next-app #18929

@ozamorowski

Description

@ozamorowski

Bug report

After creating app with yarn create next-app and running yarn build && yarn start browser page hangs.
When I remove _app.js file and return only one jsx string, I get this error:

TypeError: Object(...) is not a function
    at o (index-54f93a3aba2589cf692d.js:1)
    at no (framework.4ed712e956e4440973f2.js:1)
    at ju (framework.4ed712e956e4440973f2.js:1)
    at xi (framework.4ed712e956e4440973f2.js:1)
    at Si (framework.4ed712e956e4440973f2.js:1)
    at ki (framework.4ed712e956e4440973f2.js:1)
    at pi (framework.4ed712e956e4440973f2.js:1)
    at ii (framework.4ed712e956e4440973f2.js:1)
    at Ki (framework.4ed712e956e4440973f2.js:1)
    at framework.4ed712e956e4440973f2.js:1

The line in index.js file is return Object(i.jsxDEV)....

Without any jsx and in development mode (yarn dev) there are no errors, so it's probably bug in build script.
After changing react to version 16 everything is working normally.

To Reproduce

  1. Create next app with yarn create next-app
  2. Run yarn build && yarn start
  3. Open browser

Expected behavior

App should build and run without problems

System information

  • OS: Linux
  • Browser: chrome, firefox
  • Version of Next.js: 10.0.2
  • Version of Node.js: 14.15.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions