react-tutorial-mern icon indicating copy to clipboard operation
react-tutorial-mern copied to clipboard

Express changes before testing 9.1

Open malikankit opened this issue 9 years ago • 2 comments

I might be missing something here - since I am still trying to wrap my head around Router - so unsure if this is an issue.

Test: /, /bugs and any other URL for triggering a 404. Before I can run the above test in 9.1 - wouldn't I require changes in webapp.js too - to make express point to 'router-rendering' ?)

Update : When I test run / with the 9.1 code - I get a blank page. Adding a browserHistory attribute to the <Router> JSX tag fixes it.

  1. Hazarding a guess, maybe the issue is because of different Router versions

  2. Strikethrough text - Intuitively, I was expecting some express code to point '/' to index.html and bundle.js to enable the Router routing code can take over. So I associated it to the blank page issue. I still need to wrap my head around how the routing code takes over - but I think this is unrelated to the issue above. :)

https://github.com/vasansr/react-tutorial-mern/compare/step-8.3...step-9.1

malikankit avatar Dec 23 '16 10:12 malikankit

I'm really interested in this tutorial, but it breaks at step 2.2 Transform. Even when I clone the repo from github and run it, i get a 404 error. Does anyone know a fix ?

christsantiris avatar Jan 22 '17 16:01 christsantiris

@ctscodes : This tutorial is more than a year old. Newer version of npm packages may behave differently. I know for a fact that React-Router does. Please use package.json also from the git repo and install the specific versions -- it will work.

vasansr avatar Jan 23 '17 05:01 vasansr