coryhouse / pluralsight-redux-starter

Completed Dev Environment for "Building Applications with React and Redux" on Pluralsight
https://app.pluralsight.com/library/courses/react-redux-react-router-es6/
1.27k stars 912 forks source link

Unexpected token < error when reloading course/:id route #88

Closed mhesham32 closed 6 years ago

mhesham32 commented 6 years ago

i get this error instead of getting an empty form

Uncaught SyntaxError: Unexpected token <

coryhouse commented 6 years ago

Does the initial page load okay?

mhesham32 commented 6 years ago

every thing is ok when I click a course link i got the data of the course in the form but when reload i got the error and it says the error is in the bundle.js string-1 in the html page

<html lang="en">
coryhouse commented 6 years ago

That's odd. I suggest comparing your project to the final course exercise available under exercise files on the course page (look in the final module folder of the zip file).

If that doesn't help, please share a link to your project on a GitHub repo and I'll give it a look.

mhesham32 commented 6 years ago

https://github.com/mhesham32/React-Redux

coryhouse commented 6 years ago

Wow, this one took me awhile to hunt down, but it's an easy mistake to make: In index.html, reference bundle.js with a leading slash. :)

https://github.com/mhesham32/React-Redux/blob/master/src/index.html#L10