ERR_PNPM_PEER_DEP_ISSUES - or not? #5366
Unanswered
tomdavidson
asked this question in
Q&A
Replies: 2 comments 4 replies
-
|
Now this is a blocker and is consuming quite a bit of time. Sometimes I think I have it resolved sometimes ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
packages/ui
├─┬ @storybook/addon-actions 6.5.12
│ └─┬ react-inspector 5.1.1
│ └── ✕ unmet peer react@"^16.8.4 || ^17.0.0": found 18.2.0
├─┬ @storybook/addon-essentials 6.5.12
│ └─┬ @storybook/addon-docs 6.5.12
│ └─┬ @mdx-js/react 1.6.22
│ └── ✕ unmet peer react@"^16.13.1 || ^17.0.0": found 18.2.0
└─┬ @storybook/react 6.5.12
└─┬ react-element-to-jsx-string 14.3.4
├── ✕ unmet peer react@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1": found 18.2.0
└── ✕ unmet peer react-dom@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1": found 18.2.0I have a function readPackage(pkg, context) {
return pkg.name === 'ui'
? {
...pkg,
dependencies: {
...pkg.dependencies,
react: '^17.0.1',
'react-dom': '^17.0.1',
},
}
: pkg;
}
module.exports = {
hooks: {
readPackage,
},
}; |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Hello @zkochan so the error is real, but magically goes way if I run |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The first time I run
pnpm iafter a deb change, I will haveERR_PNPM_PEER_DEP_ISSUES. When I runpnpm ia second time, there are no errors/issues..npmrc has
auto-install-peers=trueFirst time trying to adopt pnpm is this how its suppose to work? Im troubleshooting another issue that may more not be related.
Beta Was this translation helpful? Give feedback.
All reactions