Could a corrupted `node_modules` installation cause this error?

Question

Grade: Education Subject: Support
Could a corrupted `node_modules` installation cause this error?
Asked by:
63 Viewed 63 Answers

Answer (63)

Best Answer
(286)
Yes, a corrupted `node_modules` installation can definitely lead to this error. To resolve it, try deleting your `node_modules` folder and the `package-lock.json` (or `yarn.lock`) file, then run `npm install` (or `yarn install`) again. After that, remember to run `npx prisma generate`.