-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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
:
ERROR in chunk print [entry]
bundle.js
Conflict: Multiple assets emit to the same filename bundle.js
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 of output
from [name].bundle.js
to bundle.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...