anttiviljami / react-openapi-client

Consume OpenAPI-enabled APIs with React Hooks
MIT License
57 stars 10 forks source link

Error when start cra-example [solution was found] #7

Open maxjava-dev opened 3 years ago

maxjava-dev commented 3 years ago

Steps to reproduce:

  1. clone project
  2. cd examples/cra-example/
  3. npm i
  4. npm run dev
  5. Error occurred: invalid hook call

The solution was found:

  1. delete package-lock.json
  2. delete node_modules/ directory
  3. After that I can start the example with npm i and npm run dev