contiamo / restful-react

A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥
MIT License
1.87k stars 109 forks source link

Can't install restful-react in a React 18 project #402

Open molul opened 1 year ago

molul commented 1 year ago

Describe the bug Can't seem to install restful-react in my project because it doesn't seem to work with React >17.

To Reproduce Steps to reproduce the behavior:

  1. Type npm i restful-react in a React 18 project
  2. Wait a bit and you'll see these error messages: npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.5 || ^17" from restful-react@15.9.4

Expected behavior I haven't seen any compatibility chart, so I expected to install it without problems.

Desktop (please complete the following information):