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

Conflicting peer dependency: [email protected] #222

Open
weeklyTea opened this issue Feb 22, 2024 · 0 comments
Open

Conflicting peer dependency: [email protected] #222

weeklyTea opened this issue Feb 22, 2024 · 0 comments

Comments

@weeklyTea
Copy link

I created an application via npx create-react-app my-app --template typescript and then configured environment via npx @openapi-codegen/cli init.

After I removed node_modules folder and did npm install again i got next output:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   react@"^18.2.0" from the root project
npm WARN   6 more (@apollo/client, @testing-library/react, ink, react-dom, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^17.0.2" from [email protected]
npm WARN node_modules/ink/node_modules/react-reconciler
npm WARN   react-reconciler@"^0.26.2" from [email protected]
npm WARN   node_modules/ink
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^17.0.2" from [email protected]
npm WARN   node_modules/ink/node_modules/react-reconciler
npm WARN     react-reconciler@"^0.26.2" from [email protected]
npm WARN     node_modules/ink

The @openapi-codegen/cli depends on [email protected] which depends on [email protected] which has react@"^17.0.2" as a peer dependency but it conflicts with react@18 which is used in the application.

Eventually everything installed correctly and works fine, but the warning looks dangerous.

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

1 participant