-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug]: Yarn refuses to build package that is inside of node_modules
, saying it needs a yarn.lock
file
#5804
Comments
node_modules
, saying it needs a yarn.lock
filenode_modules
, saying it needs a yarn.lock
file
Should I be trying Yarn 4 rc? I just learned that v4 exists. Maybe I'm wasting my time if issues I'm having are already solved. |
It is a rare case where yarn is unable to detect |
Ok I dug a little deeper. What is happening here is, due to Then, when running berry/packages/yarnpkg-core/sources/Project.ts Lines 701 to 704 in a8ea928
But
That said, if the dependency on |
Inferring from that, does deasync need a PR to get node-gyp as direct dependency and would that also avoid the problem? If so, I'll open a PR there. (EDIT: PR opened there.) Why do packages sometimes not include node-gyp as a dependency? Is it because it is always in scope when using Is node-gyp not a special case that Yarn should make work regardless?
Is that correct in Should Yarn's error message be improved to instead recommend fixing with |
…its direct dependency, to prevent the build error it has due to otherwise not depending directly on node-gyp directly (yarnpkg/berry#5804)
I tried adding node-gyp as a dependency for deasync in packageExtensions, and that got GitHub Actions passing, but on my local Windows machine Yarn install fails to build deasync with this output:
I used |
See also https://yarnpkg.com/advanced/error-codes#yn0032---node_gyp_injected
Yarn does special case
No. If not for the issue I metioned above (
In your GH pipeline |
Hi! 👋 It seems like this issue as been marked as probably resolved, or missing important information blocking its progression. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it. |
I personally moved on from this by updating projects to not depend on |
Hi! 👋 It seems like this issue as been marked as probably resolved, or missing important information blocking its progression. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it. |
Self-service
Describe the bug
The lume project I've been trying to migrate to Yarn for workspace management depends on
deasync
. When Iyarn install
, I get this output:and I see this in
build.log
:None of those three options seem to be applicable:
To reproduce
The lume repo at this commit should show the error, just yarn install:
https://github.com/lume/lume/tree/5bd0cac03077ffa98ee90d72de2ad7b902907db6
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: