Closed evgmel closed 4 years ago
This appears to be a problem in chokidar. This PR fixed the problem for us: https://github.com/paulmillr/chokidar/pull/791
We're using a custom fork, with this PR applied to it.
This is documented: https://parceljs.org/hmr.html#safe-write
BTW. But yea, I dislike the idea that one should disable safe write.
@SGrondin, @mitar Thanks for your answers! Disabling of 'Safe write' in PHPStorm preferences made it work. Hope, that future releases will fix that issue =)
FYI, we're working on a new watcher for Parcel 2 which should be much more reliable. https://github.com/parcel-bundler/watcher
@devongovett Hi there. I guess the FSEvents is the reason the watcher won't work right on Linux. Is there a published alpha of Parcel 2 maybe?
Thank you
whats the status on this?
Bump
On Mon, Feb 3, 2020 at 18:03 github-actions[bot] notifications@github.com wrote:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/parcel-bundler/parcel/issues/2716?email_source=notifications&email_token=AA5IIM7U3LGI46JQR7KE3U3RBCWEDA5CNFSM4G3XQLBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKV3N2Q#issuecomment-581678826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5IIMYZYO7RAPSO64EIX23RBCWEDANCNFSM4G3XQLBA .
@boazblake does it still happen in Parcel 2? We built a new watcher
Sent with GitHawk
@DeMoorJasper I'm a different person, but Parcel 2 seems to be working for me on Linux with (n)vim where Parcel 1 wasn't before. :smile:
@SamHH awesome, I'll just assume it is fixed for everyone in that case.
Gonna close this, it's been inactive for 2 weeks anyway
It's not working on Windows.
Seems like I'm experiencing this on parcel v1.22.5
on Linux.
Also getting this on 1.12.4
on Linux. Any known workarounds?
EDIT: Never mind, it turned out that I needed to disable safe write in my editor (vim): https://parceljs.org/hmr.html#safe-write
🐛 bug report
I had to upgrade my ParcelJS version from
1.9.3
to1.11.0
and Babel from 6th to 7th version, because some of Babel plugins were available only on 7th version. But now when I runparcel index.html
it does not make an update properly. Parcel only watches for the first changes save, makes HMR and then if I make some changes at THE SAME file again it does not affect anything. If I change another file, Parcel detects changes and makes reload, but the previous file changes does not apply at all. I have VueJS project with Pug templates (if it can be useful).🎛 Configuration (.babelrc, package.json, cli command)
.babelrc:
package.json
🤔 Expected Behavior
I expect ParcelJS to update the necessary files when I save file that has changes. HMR should reload necessary modules automatically at the browser.
😯 Current Behavior
When I start
parcel index.html
, it waits for the first change of any file and then does HMR, changes are shown at the browser. But if I change the same file for the second and subsequent times nothing triggers the update, ParcelJS just waiting for something:Now I need to restart
parcel index.html
command to have changes applied.💁 Possible Solution
I just can guess that it could be caused not only by ParcelJS upgrade, but also by Babel components upgrade from 6th version to 7th one.
🔦 Context
My previous .babelrc content:
package.json dev dependencies before upgrade:
💻 Code Sample
Just any index.html file that includes separate JS file.
🌍 Your Environment