-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 import
fails whenfsevents
is an optional dependency and platform is linux
#6050
Comments
@imsnif any ideas on this? |
Interesting. AFAIK, (transitive) optional dependencies should still be included in package-lock.json - I might be wrong though (that's what happens for me locally, but the particularities here might be different). It seems like in this package-lock.json the @tvjg - would it be possible for you to include your Meanwhile, I think if you remove |
(also, thanks @tvjg for the debugging work, it was quite helpful) |
Happy to contribute @iansu . I deleted the original repro case I had, but I was able to easily duplicate it again.
|
Hey @tvjg - so this
Hope this helps, I'm closing this issue now - but let me know if it doesn't work out and I'll look into it. |
It appears to still be broken. Thinking that maybe I messed up recreating the file, I tried starting over from scratch with that
|
@tvjg - which version of |
|
I think that's the issue. Older versions of |
@kpower - even if you |
@imsnif sorry, the problem was on my shared hosting side (a bit later noticed it started display random errors during other tasks). No problems now (deleted original comment). |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
yarn import
fails when a package hasfsevents
included as an optional transitive dependency. Using--ignore-optional
does not appear to change the behavior.Originally, this failed without any useful output, but I inserted some log statements into
cli.js
to identify the source of the failure. Interestingly, if I removepackage-lock.json
, the import works successfully againstnode_modules/
, but produces a warning.If the current behavior is a bug, please provide the steps to reproduce.
Run
yarn import
against the includedpackage-lock.json
. You should receive the error:yarn-error.log
It would appear to have some relation to #5930, #6040, and #5366 .
What is the expected behavior?
yarn
should generate ayarn.lock
file.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: