Using our established architecture we'll make short work of a few remaining tasks to meet our application requirements.
How come when he is debugging, the error in console refers directly to app-catalogdetail.js?
Following along, all the errors point to bundle.js for me. Is there a way to get this error debugging feature when running webpack? It is currently a pain to go through bundle.js with error messages that are at times unhelpful
Just add devtool: 'source-map'
to the root of the exported object in webpack.config.js
I tried doing this, but it failed, it keeps showing "bundle.js", any ideas?
i did this using react-router-dom ver. 4. And i booted up the project with creat-react-app - which sets up all the webpack for you. My code is here https://github.com/mconnor/egghead-flux.
One problem i had was with app-catalogdetails.js. On the Array.find in getCatalogItem, i had to check id against
props.match.params.item
notprops.params.item