Webpack - ERROR in Cannot find module '../modules/web.dom.iterable' @ multi main
I started up a new webpack/react project recently and immediately ran into this error:
ERROR in Cannot find module '../modules/web.dom.iterable' @ multi main
npm, adding various modules such as
core-js I was still unable to fix the problem. The solution that finally fixed it was actually the simplest
rm -rf node_modules && npm install
After I completely reinstalled my local
node_modules, everything worked! I hope this saves someone else a few hours of time.
Curtis Larson is a LA based freelance software developer. Follow him on Twitter or send him an email if you're looking for a talented developer.