-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
"TypeError: Object(...) is not a function" with create-next-app and next dev #22206
Comments
This is still not reproducible based on the steps provided. Please provide a full reproduction in a repository. |
@armordecai I'm had the same issue. What's your NODE_ENV set to? I can reproduce it with NODE_ENV=production Works
Fails
|
@ostseb You're right. @timneutkens But I think |
Closing in favor of #19046 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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. |
What version of Next.js are you using?
10.0.7
What version of Node.js are you using?
14.15.5
What browser are you using?
Firefox
What operating system are you using?
Linux Mint 19.3 (Ubuntu 18.04)
How are you deploying your application?
next dev
Describe the Bug
This was previously reported in #21038 and was closed as not reproducible. Hopefully the additional information in my report proves helpful. The problem is 100% reproducible on my machine with Next.js 10.0.7 (latest), 10.0.6, and 10.0.5. The problem is resolved by downgrading to 10.0.4.
When I create a new Next.js app using
create-next-app
(vianpx
), start it in development mode withnext dev
(via the provided NPMdev
script), and loadhttp://localhost:3000
in the browser, the following error is raised:If I use
next build && next start
instead, no error is raised, and the app loads (in production mode) as expected. I haven't touched any of the files generated bycreate-next-app
or run any other commands inside the project directory.Expected Behavior
I expected the app to compile and run in development mode, like Next.js apps usually do.
To Reproduce
npx create-next-app example
cd example
npm run dev
The text was updated successfully, but these errors were encountered: