Dev mode breaks when additional languages are added #7913
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When
docusaurus
is running in dev mode and the config is changed to add a new prism language, the change is detected (client recompiles) but the browser is blank and the console shows the error:The error is cleared up by restarting the dev server process. Ideally, webpack would detect that the new language is added and actually include it in the bundle.
Reproducible demo
No response
Steps to reproduce
npm start
and keep it openExpected behavior
The hot reload system detects that the new language must be loaded OR a message that the dev server should be restarted.
Actual behavior
Browser is blank and the error console states that a prism module is missing.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: