ferdikoomen / openapi-typescript-codegen

NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
MIT License
2.95k stars 524 forks source link

While resolving: react-grid-system@7.3.2 #2007

Open scheung38 opened 9 months ago

scheung38 commented 9 months ago

npm install openapi-typescript-codegen --save-dev

npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: react-grid-system@7.3.2 npm WARN Found: react@18.2.0 npm WARN node_modules/react npm WARN peer react@">=16.0.0" from @ant-design/icons@4.8.0 npm WARN node_modules/@ant-design/icons npm WARN @ant-design/icons@"^4.7.0" from react-chat-engine-advanced@0.1.28 npm WARN node_modules/react-chat-engine-advanced npm WARN 13 more (@heroicons/react, @reduxjs/toolkit, nextjs-websocket, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"^16.8.0 || ^17.x" from react-grid-system@7.3.2 npm WARN node_modules/react-grid-system npm WARN react-grid-system@"^7.3.2" from react-chat-engine-advanced@0.1.28 npm WARN node_modules/react-chat-engine-advanced npm WARN npm WARN Conflicting peer dependency: react@17.0.2 npm WARN node_modules/react npm WARN peer react@"^16.8.0 || ^17.x" from react-grid-system@7.3.2 npm WARN node_modules/react-grid-system npm WARN react-grid-system@"^7.3.2" from react-chat-engine-advanced@0.1.28 npm WARN node_modules/react-chat-engine-advanced

The react-grid-system package requires a version of React that is either 16.8.0 or any version in the 17.x range. However, your project is currently using React version 18.2.0, which is not compatible with react-grid-system.

To resolve this issue, you have a couple of options:

  1. Downgrade your React version to a compatible one. This might not be ideal if you're using features from React 18.2.0 that are not available in earlier versions.

  2. Look for an alternative to react-grid-system that supports React 18.2.0.

What is the best option please?

mrlubos commented 8 months ago

@scheung38 react-grid-system supports React 18