Flux Architecture: Component Wrap Up

Joe Maddalone
InstructorJoe Maddalone

Share this video with your friends

Send Tweet

Using our established architecture we'll make short work of a few remaining tasks to meet our application requirements.

James
James
~ 5 years ago

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

Joe Maddalone
Joe Maddaloneinstructor
~ 5 years ago

Just add devtool: 'source-map' to the root of the exported object in webpack.config.js

Victor
Victor
~ 5 years ago

I tried doing this, but it failed, it keeps showing "bundle.js", any ideas?

mike connor
mike connor
~ 4 years ago

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 not
props.params.item