Skip to content
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

[Bug] HotModuleReplacementPlugin in development is missing #380

Open
phal0r opened this issue Feb 28, 2024 · 0 comments
Open

[Bug] HotModuleReplacementPlugin in development is missing #380

phal0r opened this issue Feb 28, 2024 · 0 comments

Comments

@phal0r
Copy link

phal0r commented Feb 28, 2024

After setting up a new nx project with rxpack configurator, the dev experience was broken, because the dev server would just throw an error, that hot module loading is disabled and the ui won't even load.

After some digging it turned out, that the HotModuleReplacementPlugin was not added.

To fix this I added it manually in rspack.config.js like so:

if(config.mode === 'development') {
    config.plugins.push(new rspack.HotModuleReplacementPlugin())
  }

Since nx should provide a out of the box working dev experience, this should be added to the configurator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant