-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[NEXT-853] Running development mode on fresh create-next-app not working #45413
Comments
+1 looks like I'm having the same issue. My repo was working perfectly on windows, but can't get the dev server to start up on Mac. |
Please verify that your issue can be recreated with Why was this issue marked with the
|
Additional note, rolled all the way back to next@13.0.0 to have it working again. Even 13.0.1 was still crashing with the same issue. |
Can confirm next@canary still experiences the same issue. @balazsorban44 |
Thanks @MJtH - Working for me on 13.0.0 too. Will just use that for now. |
This is very helpful, could you maybe pin down the exact |
@MJtH can you add a screen recording showing the behavior you are seeing if no errors are being shown that can be shared? |
Just to add some information: I'm also on |
+1 saw this issue, when I debug the stack trace I get the issue to point at _webpack.webpack.DefinePlugin is undefined because the import seems to not have called the _webpack.init() method, if I do this manually with breakpoints I get further, but I get it working on 13.0.0 as stated above |
Here is a video of next@latest, with a fresh create next-app. next@latest.mov
|
I was experiencing a very similar issue on After installing the canary version, |
in next/dist/server/config.js When I run on canary 13.1.7-11 I see: The error I ultimately get on canary is: Failed to start next js server TypeError: Cannot read properties of undefined (reading 'ProvidePlugin') If the loadWebpackHook this doesn't happen for me, I remove the conditional load and the server starts fine for me. Looks like this commit introduced this condition: This only happens for me when I run the next js server in dev mode, when I build out my production build it runs fine |
on next:^13.2.1 getting error: TypeError: Cannot read properties of undefined (reading 'ProvidePlugin') while building custom dev server. Production environment works fine. next:^13.0.1 does not have this issue. Please fix. |
Experiencing the same issue with next |
This comment was marked as off-topic.
This comment was marked as off-topic.
@ijjk do you think aa0664c (your PR with the experimental precompiled Maybe it could be breaking things in these other issues too: |
I have similar problem
|
@ijjk I've tracked down the conditional loading of compiled Webpack to be the culprit - https://github.com/vercel/next.js/pull/43198/files#diff-7836d903b56ef6914ef5f3e8d1711c1d353d7b6ae4efefb0d2193897ee4fca85R837-R839 I removed the |
I've been running into SIGSEGV and silent crashes all day trying to get my application working on my chromebook (crostini) instead of my mac. Downgrading Node to |
still open, I have same issue right now. I use next@latest init a new project,
Saddly, I downdraged node to |
I encountered the same issue locally while running |
Verify canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64
Binaries:
Node: 18.13.0
npm: 8.19.3
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.1.6
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
CLI (create-next-app)
Link to the code that reproduces this issue
N/A
To Reproduce
Run
npm run dev
from root directory of project.Package.json:
Describe the Bug
When running
npm run dev
on a fresh create-next-app, the dev server is not starting, no errors are logged in the terminal - it just kills the command and shows the terminal cursor again. Localhost is not being used by another application.Expected Behavior
Dev server to spin up in localhost:3000.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-853
The text was updated successfully, but these errors were encountered: