-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
If the loader has an infinite loop or any other bug that causes it to get stuck, the dev server keeps running even when SIGINT is sent.
Discovered while working on facebookincubator/infima#219
Reproducible demo
No response
Steps to reproduce
- Init
- Change the options:
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// A hopeless infinite loop
remarkPlugins: [() => { while (true); }],
},yarn start- Oh no, page stuck. SIGINT (Ctrl + C) to the rescue
yarn startagain[WARNING] Something is already running on port 3000. Probably:- What? Run
lsof -i tcp:3000=> The dev server process is indeed still running - Use the force:
kill -9 47874
Expected behavior
SIGINT should be able to stop the dev server
Actual behavior
It keeps running in the background and listening on port 3000. Probably the compile process is never hung properly...
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution