next.js: yarn dev crashes
What version of Next.js are you using?
10.0.8
What version of Node.js are you using?
15.10.0
What browser are you using?
Chrome, Firefox, Brave
What operating system are you using?
Linux
How are you deploying your application?
n/a
Describe the Bug
While in development using yarn dev process just crashes with this error message
.../node_modules/next/dist/server/hot-reloader.js:16
delete _onDemandEntryHandler.entries[page];return;}_onDemandEntryHandler.entries[page].status=_onDemandEntryHandler.BUILDING;const pageLoaderOpts={page,absolutePagePath};entrypoints[isClientCompilation?clientBundlePath:serverBundlePath]=isClientCompilation?`next-client-pages-loader?${(0,_querystring.stringify)(pageLoaderOpts)}!`:absolutePagePath;}));return entrypoints;};}const multiCompiler=(0,_webpack.webpack)(configs);(0,_output.watchCompilers)(multiCompiler.compilers[0],multiCompiler.compilers[1]);// Watch for changes to client/server page files so we can tell when just
TypeError: Cannot set property 'status' of undefined
at .../node_modules/next/dist/server/hot-reloader.js:16:94
at async Promise.all (index 0)
at async DynamicEntryPlugin.config.entry (.../node_modules/next/dist/server/hot-reloader.js:15:96)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Expected Behavior
The process should not crash until manually stopped
To Reproduce
I am not sure how to reproduce this. Sometimes it crashes after 10 seconds sometimes after 10 minutes but it always does crash eventually.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 15 (9 by maintainers)
It happens to me when there are no API calls at all. I was only doing Front-End stuff and then it randomly crashes. Sometimes after 5 sometimes after 20 minutes, but it always does happen.
Thank you. I’ll add that I’m also on linux (ubuntu).