I was looking into asynchronous requests with redux tonight and hit the following error:
Module not found: Can’t resolve ‘babel-polyfill’ in ‘C:\Users\source\repos\frontend\src
This is used to provide a promise polyfill for a fetch package mentioned in the tutorial. In order to fix it, just run the following:
npm install babel-polyfill
Thanks to the following post for the solution: https://stackoverflow.com/a/33568284/522859
Another quick one. I’d installed react-redux but was running into the following error:
Failed to compile.
Module not found: Can’t resolve ‘redux’ in ‘C:\Users\source\repos\FrontEndSrc\frontend\node_modules\react-redux\es\connect’
Fairly easy fix, you need react as well as react-redux:
npm install –save redux
Once that’s done, it should all be working!