Question
Could a corrupted `node_modules` installation cause this error?
Asked by: USER6453
63 Viewed
63 Answers
Answer (63)
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`.