-
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 error - cannot read property 'version' of undefined #5930
Comments
Hey @cdimitroulas - would it be possible for you to share your |
Hey @imsnif, of course - here you go! |
Hi @cdimitroulas - first, thanks for reporting this and being willing to share your In short, what happens here is that because of a (really really edge case) issue with A certain deep Github dependency was not added to For now, until the PR is merged and a new version released, I can offer a workaround that is not ideal but should solve your issue in a pinch:
The "offending" dependency is |
Honestly, I am very impressed with the turnaround on this issue 💯 Thanks so much, your solution worked and you got back to me so quickly 🙏 One last thing - I can't see the |
Hot damn! You're correct. Too much typing today :) Edited. |
Fixed in 1.8.0 |
Do you want to request a feature or report a bug?
I am reporting a bug
What is the current behavior?
Running
yarn import
fails with the error:An unexpected error occurred: "Cannot read property 'version' of undefined".
The full error log:
What is the expected behavior?
yarn import
should create ayarn.lock
file from thepackage-lock.json
file.Please mention your node.js, yarn and operating system version.
Node.js version -
8.11.2
(Using nvm)Yarn version -
1.7.0
OS -
Ubuntu 16.04 (linux x64)
The text was updated successfully, but these errors were encountered: