cypress-io/cypress-react-unit-test

Next.js example throws hook error

Closed this issue · 2 comments

Trying the examples/nextjs

  • cloned code
  • npm i in the root folder
  • npm run build
  • cd examples/nextjs
  • npm i
  • npm run cy:open and both spec files give me

Screen Shot 2020-09-16 at 3 36 01 PM

I think I know the root of issue. Try to delete node modules from the examples folder. Or even better to delete all node modules and reinstall

Perfect - removed examples/nextjs/node_modules and ran npm i in that folder - solved the problem, thank you @dmtrKovalenko