Closed raaaahman closed 2 years ago
Is that really the whole error message?
Should I report to the chokidar project instead? Is a different watcher available for Parcel currently?
Parcel doesn't use chokidar but instead https://github.com/parcel-bundler/watcher
Yes it's the whole message, I even tried --log-level verbose
but didn't get more info.
So I see that @parcel-bundler/watcher can use either Watchman or inotify backend on Linux, how can I see the one that's actually been used?
In the function getWorkerBackend
at the very bottom of node_modules/@parcel/core/lib/RequestTracker.js
, you can change the function to return return {ignore, backend: "inotify"};
instead.
Possible values for backend
:
https://github.com/parcel-bundler/watcher/blob/caf372c41abff401a60dde698891631e3387ee77/index.d.ts#L4-L9
In my parcel version (2.2.1) the function is called getWatcherOptions
but anyway, I have been able to change the backend in use, so:
inotify
as a backendwatchman
as a backendCould we possibly configure this through a .env
variable ?
Should I move this issue to @parcel/watcher ?
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.
I'm having the same problem. Could you find any solution that didn't involve changing code at node_modules/?
Deleting watchman package from my system solved the issue. I had this installed.
🐛 bug report
When trying to launch development server with
parcel src/index.html -p 8000
, I have the following error:🎛 Configuration (.babelrc, package.json, cli command)
package.json
tsconfig.json
No .babelrc, no .parcelrc
🤔 Expected Behavior
I expect to be able to run projects using fb-watchman (for React Native) and projects using Parcel (for web) on the same development environment.
Sure, I could still use VM / containers for each environment, but I'd rather not to if possible.
💁 Possible Solution
Using fb-watchman for dev server seems to have already been discussed in #863 and #889 but not agreed upon.
Should I report to the chokidar project instead? Is a different watcher available for Parcel currently?
🌍 Your Environment