React v18 and warning about an unmet dependency with react-aria-menubutton
PeterC-DLS opened this issue · comments
Peter Chang commented
Consuming @h5web/lib v10 and installing with pnpm
:
WARN Issues with peer dependencies found
client/component
└─┬ @h5web/lib 10.0.0
└─┬ react-aria-menubutton 7.0.3
└── ✕ unmet peer react@"^16.3.0 || ^17.0.0": found 18.2.0
It seems like there's an upstream issue: react-aria-menubutton:#156
Axel Bocciarelli commented
Yeah, sorry for not documenting this anywhere. You can safely ignore the warning or silence it, for instance with the following config in package.json
if you use pnpm:
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"react-aria-menubutton>react": "18.x"
}
}
}
Peter Chang commented
Thanks, this works if I add it to the top-level package.json
of a monorepo.