You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project using Yarn PnP and I get the following error when trying to run the renovate CLI via the npm package:
Error: @renovatebot/kbpgp tried to access bn, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
This error appears to indicate that bn should be declared as a dependency, rather than how it's currently declared as a devDependency. I'm not sure what the intended setup is, so maybe a peerDependency could be more appropriate, too.
Yarn PnP is extremely strict, so it tends to uncover configuration errors that silently work in other setups.
My package.json is as follows, with a few fields redacted:
The text was updated successfully, but these errors were encountered:
drewgingerich
changed the title
Yarn: error due to bn not declared in dependencies
Yarn: error due to bn not being declared as a dependency
Nov 18, 2024
I have a project using Yarn PnP and I get the following error when trying to run the
renovate
CLI via the npm package:This error appears to indicate that
bn
should be declared as adependency
, rather than how it's currently declared as adevDependency
. I'm not sure what the intended setup is, so maybe apeerDependency
could be more appropriate, too.Yarn PnP is extremely strict, so it tends to uncover configuration errors that silently work in other setups.
My
package.json
is as follows, with a few fields redacted:My
yarnrc.yml
is as follows:The text was updated successfully, but these errors were encountered: