-
-
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
Error in jest watch when using yarn for dependency installation #1474
Comments
Can you check if |
I'm having the same problem with version 1.0.3.
|
Which version of Yarn are you using? |
I'm using Yarn version 0.19.1. |
Could this be a regression? Would you mind installing 0.18 and trying again? |
Experiencing the same problem with 0.18.0, 0.18.1 and 0.20.0. It may be worth noting that I'm using Yarn installed globally via NPM. I can try again using Homebrew if you'd like? |
The one giving me trouble is 0.19.1 installed via Homebrew. That was my first version so can't |
Can you figure out what the difference between installs produced by Yarn and npm is? Is some package or binary missing? |
I'm not sure what's the best way to do that. Do you have any suggestions? I ran
|
Is this the same as #871? Maybe try installing |
i just pushed the repo with both node_modules and a diff, https://github.com/aztecrex/demo-create-react-app-yarn-problem. Interesting, here is the result of
( |
@hongrich i had tried that yesterday. I just tried it again: install watchman, delete node_modules,
When i press
After I uninstall watchman, the behavior goes back to the one described in this report. |
This is because of those |
Removed those dirs and the "install watchman" workaround fixes the problem. Uninstalling watchman causes it to re-occur. @hongrich glad I tried it again |
@gaearon yeah we are making some changes that should improve this situation. |
Going to close since this is out of our control. |
I fixed the issue upgrading yarn to |
If your tests hang, that's not the problem described in this issue. For that problem, please see here. |
Sorry my bad! I didn't describe this correctly, I meant FSWatcher is not longer available in macOS Sierra so watchman is required. |
I hit this issue today on macOS High Sierra using Yarn. Deleting my |
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
Can you reproduce the problem with latest npm?
Can you still reproduce it?
Yes.
Description
npm test
,yarnpkg test
,yarn test
all fail when dependencies are installed withyarn install
. They all work fine when dependencies are installed withnpm install
.In CI mode (not watched), tests run fine after installing deps with yarn. Research indicates others are having similar problems with tools like Watchman which leads me to believe that something is different in how Jest is performing the watch depending on how it is installed. There is also a
sense that this has to do with OSX Sierra.
Expected behavior
Tests run
Actual behavior
Crash. See stack trace beow.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
: react-scripts@0.8.5node -v
: v7.4.0npm -v
: 4.1.2Then, specify:
Operating system: Darwin trefoil 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Browser and version: Not a browser isssue
Reproducible Demo
Easy: this happens from a fresh create-react-app when Yarn (freshly brewed today)
is installed.
yarnpkg test
will fail. Now delete node_modules and runnpm install
nownpm test
works fine. delete node_modues and runyarn install
, bad behavior returns.Push to GitHub and paste the link here.
https://github.com/aztecrex/demo-create-react-app-yarn-problem
Full stack trace:
The text was updated successfully, but these errors were encountered: