-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Stale stats when not using HotModuleReplacementPlugin #837
Comments
Hey @Mordred 👋, |
It not working even if
|
@kompolom You have to add configuration.externals = [
nodeExternal({
// @loadable/server - because it is using module.hot
allowlist: [/^@loadable\/server/],
}),
]; So that I think that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This bug still exists |
👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
💥 Regression Report
Using
module.hot
is preventing cache clear if not using HotModuleReplacementPlugin or Webpack completely for server. (8f10896)Last working version
Worked up to version: v5.14.2
Stopped working in version: v5.15.0 (commit 8f10896)
To Reproduce
Steps to reproduce the behavior:
Download example https://github.com/gregberge/loadable-components/tree/main/examples/server-side-rendering. Run
npm run build:webpack -- --watch
in one terminal andbabel-node src/server/main.js
in second.Then change Test in App.js to Test 2 - you will get old bundles in the HTML and warning
Text content did not match. Server: "Test 2" Client: "Test"
if you refresh the page.On v5.14.2 this is working as it should.
Expected behavior
There should be no warning and correct bundles after refresh.
The text was updated successfully, but these errors were encountered: