-
-
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
[Yarn/Lerna] Workspaces: Watcher not working in v2 #6039
Comments
Alright! I have more insights on this bug. TL;DR: If there is a false In my case I start the app via Still a bug or an improvement maybe. |
Starting from your entry points, Parcel finds the first directory that contains a lockfile or a
I'm not sure how this could be improved |
To clarify, I removed the dangling |
Looks like this behaviour to me:
|
No, it's here:
Yes, I can see how this fixed your problem. But there's not much we can do apart from documenting this behaviour. |
Thank you. I'll close the issue since the actual problem is resolved. |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
node <=14
andyarn <= 1.22.10
yarn install
🤔 Expected Behavior
when I start the project with
yarn start
and then change the HelloWorld component that is imported from a yarn workspace the project will not recompile. We've had numerous discussions about it. I reference them in the "context" part.😯 Current Behavior
The Change is not recognized and the page stays pristine, when I change somethin inside the app workspace itself the watcher pics the changes up and recompiles. So that is not an issue.
💁 Possible Solution
Pick up changes from workspace imports like parcel v1 does.
🔦 Context
This same repo works in parcel v1. In fact you can reproduce the same steps in the main branch of the repo for comparison.
💻 Code Sample
https://github.com/lookmom/nohands/tree/feature/parcel2 (pinned version)
🌍 Your Environment
The issue is present in every parcel v2 version, in every node version starting from 12, in every yarn version starting from 1.22, in every Windows 10 version starting from 1907. Also tested in WSL with Ubuntu 20.10 with the same results.
The text was updated successfully, but these errors were encountered: