-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
Cannot find module 'lodash/get' #1076
Comments
Can you provide a reproducer? |
can you try with 6.21.0. I can't reproduce? |
I think they were trying to build the orval itself using pnpm, but orval is using yarn, so pnpm isn't supported 👍 |
I can confirm that the issue exists when just installing the //.pnpmfile.cjs
module.exports = {
hooks: {
readPackage: (pkg) => {
if (pkg.name === '@orval/core' || pkg.name === 'orval') {
pkg.dependencies['lodash'] = '*';
}
}
}
} |
A PR is welcome if you know the fix? |
Similar override as in #1076 (comment), but through {
...
"pnpm": {
"packageExtensions": {
"orval": {
"dependencies": {
"lodash": "*"
}
},
"@orval/core": {
"dependencies": {
"lodash": "*"
}
}
}
}
...
}
|
I've the same issue using yarn 4.1.1 pnp and found no workaround yet. |
What are the steps to reproduce this issue?
What happens?
Build fails
What were you expecting to happen?
Find module
lodash/get
and buildAny logs, error output, etc?
Any other comments?
orval
spackage.json
is not listinglodash
orlodash.get
as a dependency.What versions are you using?
Operating System: Debian
Package Version: 6.20.0
Browser Version: Not applicable
The text was updated successfully, but these errors were encountered: