Skip to content
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

Error on NPM update #161

Open
nezaboravi opened this issue Dec 11, 2024 · 1 comment
Open

Error on NPM update #161

nezaboravi opened this issue Dec 11, 2024 · 1 comment

Comments

@nezaboravi
Copy link

npm resolution error report

While resolving: undefined@undefined
Found: [email protected]
node_modules/react
peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @atlaskit/[email protected]
node_modules/@atlaskit/pragmatic-drag-and-drop-flourish
@atlaskit/pragmatic-drag-and-drop-flourish@"^1.1.1" from the root project

Could not resolve dependency:
virtua@"^0.31.0" from the root project

Conflicting peer dependency: [email protected]
node_modules/react
peer react@"^19.0.0" from [email protected]
node_modules/react-dom
peerOptional react-dom@">=16.14.0" from [email protected]
node_modules/virtua
virtua@"^0.31.0" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

@ReDrUm
Copy link
Collaborator

ReDrUm commented Dec 15, 2024

Hi @nezaboravi, this error is a clash between the provided React version and the expected React version. Your application is providing [email protected] and Pragmatic Drag & Drop expects React within ^16.8.0 || ^17.0.0 || ^18.0.0.

React 19 is new, released 11 days ago, so unfortunately we haven't tested our lib with it yet.

If you want to stabilise things in the meantime I'd recommend downgrading your app's React version to version 18.

I'm not sure why virtua is also complaining, since its peer dependency of react-dom@>=16.14.0 should be satisfied by both version 19 and 18. Hopefully that issue goes away when you switch to React 18. virtua itself depends on React 18 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants