-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
When I add a new package I have to restart #2606
Comments
This used to work. Can you provide more details? Exact way to reproduce, which package you were installing, how it didn't work, etc. |
Kinda strange. |
:O I thought that was normal. |
It should just work if you install a package in a separate terminal session. Without restarting. |
Tagging as up for grabs: we need someone to try reproducing it, and report whether it is reproducible or not. |
@gaearon, I am not able to reproduce this issue. These are the following steps what I've followed to test this issue:
|
@reznord @gaearon I followed these steps:
and I did this:
|
Yes, HMR works only when there is a change CSS/JS files. In this case, it will work if you are making some changes in the JS file and save it. It will work perfectly without any errors. |
@reznord I think there is still some bug because manually reloading the tab didn't trigger a rebuild, it only worked after editing code and saving it, ideally WatchMissingNodeModulesPlugin should have triggered a rebuild. |
I find this to be happening not for brand new installs, but for updates of existing node modules. Like if I run yarn upgrade package-x, I find I have to manually restart the dev server to get those changes to appear. Should that work out of the box as well? Thank you! |
That should work, but I don’t think we tested with Yarn. Maybe it only worked with npm. |
@supra28 I'm not sure how that is related to this. Manually reloading a tab will not trigger a rebuild. Because HMR will not be fired every time you refresh the tab. HRM looks for changes in JS/CSS files. Reloading the tab doesn't fire HMR since no changes in JS/CSS are made. |
@gaearon , rebundling on yarn upgrade is definitely not working with the following commands: In terminal tab #1:
In terminal tab #2:
At the top of
in the browser console you'll now see:
In terminal tab #2 run:
in the browser console you'll still see:
instead of the expected
https://github.com/tnrich/semver-console |
@reznord Sorry that's not what I meant, what I meant was shouldn't |
Closing in favor of #2956 which is more focused. |
Is there anyway to not have to restart (npm start) the server when I add a new package?
The text was updated successfully, but these errors were encountered: