Reputation: 1
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
Reputation: 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