-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Hot reload not working on html file changes #6187
Comments
That is already fixed in the |
Thanks for your quick reaction! I just tried the nightly version. But there seems to be a conflict with the sass module. When executing my
I already tried to uninstall sass and @parcel/transformer-sass. But even with Parcel's autoinstall I get the same error. |
Have you also tried deleting |
I tried |
The behavior I've noticed is similar: javascript changes cause the entire page to refresh, scss changes will (usually) refresh in browser without reloading the entire page, and for HTML changes the page must be manually refreshed. However, the hot reload fails on any one of these fairly regularly, and far more often than I'd prefer (usually at least several times per day), I have to delete the parcel cache and rebuild from scratch. As a perhaps-notable addendum: yesterday I was experiencing a profound reduction in speed on all page loads and reloads, which appeared at first to be a failure of the hot-reload server and/or Parcel in general, but it turns out my browser was just hanging while trying to retrieve a single externally hosted font that was being @imported into my scss (presumably either no longer available on its host site, or my access to it had been cut off by the host due to the sheer number of reloads that I must have triggered while developing since having originally included it). |
Maybe you're using WSL2, I don't know but I have the same issue then I change back to use WSL1, and it's worked. To see what WSL version are you on (open |
I think this should be fixed as of #6567 in the latest nightly. If multiple files change at the same time and only some of them call |
🐛 bug report
I am using Parcel V2 together with Eleventy. I've set up the pipeline so that Eleventy processes the files and saves them to a
./tmp
folder which in return is watched by Parcel. Parcel then processes those files and serves them from the defaultdist
folder.🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
I am expecting the Parcel server to hot reload all the assets (css, js and html) if I am not mistaken.
😯 Current Behavior
Hot reloading works for everything related to CSS and JS. But when I am applying changes to the HTML, I have to manually reload the site.
I tried to add the following script to my
index.js
. But with no success regarding the HTML reloading.On top of that I am experiencing a 404 error when using
npm start
. Only when I delete the.parcel-cache
folder the 404 error is gone. Also, I sometimes can't kill the Node process in the terminal. The only way to stop is to close the Terminal altogether (Mac terminal as well as VSCode terminal)I am also seeing a sourceMap error in the console. But I am not sure if that's related.
💁 Possible Solution
🔦 Context
I am trying to simplify my dev experience. Other than that, everything works fine.
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: