Closed garg3133 closed 3 years ago
While deploying to heroku, it was throwing the following error Error: Cannot find module 'lodash'.
Error: Cannot find module 'lodash'
Ran npm i --save lodash.
npm i --save lodash
It works fine by just removing "dev": true from package-lock.json too (without adding anything in package.json).
"dev": true
Done in 713e6c19ec796071c065bc17ebc7537ae851b4b7 (sorry, I didn’t see this first). Thanks!
While deploying to heroku, it was throwing the following error
Error: Cannot find module 'lodash'
.Ran
npm i --save lodash
.It works fine by just removing
"dev": true
from package-lock.json too (without adding anything in package.json).