-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Guides - Warnings/Errors in Hot Module Replacement #1461
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
Comments
@TheDutchCoder @sbaidon I think this may have been introduced in #1439. Can one of you take a look? |
I have looked into the issue. I found that the warnings are removed once you specify a single entry point, |
To quote @maheshspec from #1463:
@maheshspec also opened this pr: #1464 (though I'm not sure it resolves everything mentioned here) |
Ah actually, after re-reading the error/warnings, I'm pretty sure they are all do to the same issue with the
@sbaidon I don't think anything need to be changed with the |
Refactor examples in hot-module-replacement that yielded build errors and warnings. Resolves #1461
Hello! I am new to Webpack, and I'm trying to learn it by the guide, as I advanced to HMR, I got some errors...
I've written the code showed in that chapter until the Stylesheets part (which I haven't read yet), and I got this console message while using
npm start
:I'm not sure, but I think this error is about having multiple entries, so I guess it needs to have a output name for each one of it.
Then I noticed that the author of the guide changed the
filename
property ofoutput
from[name].bundle.js
tobundle.js
, so I typed it back to the previous value to see what happens, then I get no error from the console. But also no hot edits work also...When I edit(and save) the
print.js
file, I get the following browser's console:The
ReferenceError
is understandable(and they need to be solved on the guide), but even getting through them we have the warnings, that tell us the modules can't be hot updated, and that's the focus of this section of the guide...Does anybody who had read the article about HMR know how to proceed? I really don't have a clue of how to solve and improve it...
The text was updated successfully, but these errors were encountered: