David Hub
David Hub

Reputation: 1

How can I fix this Cannot find module 'ajv/dist/compile/codegen' Require stack: Error when I start my react app?

Cannot find module 'ajv/dist/compile/codegen' Require stack:

This error happens on the terminal in every react app that I create. How can I prevent this error even thought I create a new react app?

Upvotes: 0

Views: 2786

Answers (1)

you can check package-lock.json and try re-install your node module again

rm -rf node_modules package-lock.json
npm install

I hope this can help you

or you can try this one Thanks! for this

npm ls ajv
npm install --save-dev ajv@^8

Upvotes: 0

Related Questions