I am currently seeing this error when building my branch. I am using create-react-app behind the scenes. I used to see the same issue on my local, but clearing the node_modules directory and running yarn again fixed it. Unfortunately I am unable to do the same on the netlify environment. I tried upgrading my package.json version but that did not work. Can someone please look into it? Thanks!
I think clearing the cache for me would help. I did that on my local and I am able to run yarn build successfully. The same command does not work on Netlify servers. I also need this to run on the dev branch and not on the production branch (which is why I don’t have the option to clear cache in the Netlify UI).
Yes I do. Locally it’s easy to just delete node_modules and reinstall. It would be great if we could easily clear cache on Netlify servers for branch deploys.
@perry: Yes I was aware of this but it wasn’t helpful AFAIK this feature to “clear cache and deploy site” is only available for the production build and not for branch builds (unless I am wrong here, so please correct me).