bschulte / nes-react

React components for the nes.css styling framework
85 stars 20 forks source link

Error: Could not resolve dependency: peer react@"^15.0.0 || ^16.0.0" from nes-react@1.0.2 node_modules/nes-react nes-react@"*" from the root project #13

Open lritter79 opened 3 years ago

lritter79 commented 3 years ago

From the automatically generated error report: `

npm resolution error report

2021-10-18T02:09:39.181Z

While resolving: my-portfolio@0.1.0 Found: react@17.0.2 node_modules/react react@"17.0.2" from the root project

Could not resolve dependency: peer react@"^15.0.0 || ^16.0.0" from nes-react@1.0.2 node_modules/nes-react nes-react@"*" 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.

Raw JSON explanation object:

{ "code": "ERESOLVE", "current": { "name": "react", "version": "17.0.2", "whileInstalling": { "name": "my-portfolio", "version": "0.1.0", "path": "C:\Users\lritter\Source\Repos\my-portfolio" }, "location": "node_modules/react", "isWorkspace": false, "dependents": [ { "type": "prod", "name": "react", "spec": "17.0.2", "from": { "location": "C:\Users\lritter\Source\Repos\my-portfolio" } } ] }, "currentEdge": { "type": "prod", "name": "react", "spec": "17.0.2", "from": { "location": "C:\Users\lritter\Source\Repos\my-portfolio" } }, "edge": { "type": "peer", "name": "react", "spec": "^15.0.0 || ^16.0.0", "error": "INVALID", "from": { "name": "nes-react", "version": "1.0.2", "whileInstalling": { "name": "my-portfolio", "version": "0.1.0", "path": "C:\Users\lritter\Source\Repos\my-portfolio" }, "location": "node_modules/nes-react", "isWorkspace": false, "dependents": [ { "type": "prod", "name": "nes-react", "spec": "*", "from": { "location": "C:\Users\lritter\Source\Repos\my-portfolio" } } ] } }, "strictPeerDeps": false, "force": false }

`

BenMcLean commented 2 years ago

I have the same problem. It seems this hasn't been maintained for newer versions of React.

kondo0602 commented 1 year ago

@bschulte @hissalht Do you have any plans to update this library to support React 18?

Alternatively, if I create a pull request to make the library compatible with React 18, would you be willing to review and merge it?