-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Closed
Labels
please add a complete reproductionPlease add a complete reproduction.Please add a complete reproduction.
Milestone
Description
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
- Create next app with
yarn create next-app - Run
yarn build && yarn start - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
please add a complete reproductionPlease add a complete reproduction.Please add a complete reproduction.