I had the same issue, deleting my “package-lock.json” and re-running npm install worked
For those having issue on render.com
- remove
package-lock.jsonfrom your repo or add togitignore - then run the build command
npm install ; npm run buildusing the build from last comment option onrender.com dashboard