Module not found: Can't resolve 'lodash/collection/forEach'
matthetherington opened this issue · comments
So I'm trying to use velocity-react in a project that uses lodash v4.x and I'm getting the warning in the title.
I can fix it by aliasing lodash/collection/forEach
to lodash/each
in my webpack config but this seems a bit hacky.
In velocity-react's package.json there is: "lodash": "^3.10.1"
- so I'm not sure why it's trying to use the v4 from my project.
Any ideas?
Nevermind, removed node_modules
+ package-lock.json
, ran another npm install
and all is working now.