coryhouse / pluralsight-redux-starter

Completed Dev Environment for "Building Applications with React and Redux" on Pluralsight

Home Page:https://app.pluralsight.com/library/courses/react-redux-react-router-es6/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected token < error when reloading course/:id route

mhesham32 opened this issue · comments

i get this error instead of getting an empty form

Uncaught SyntaxError: Unexpected token <

Does the initial page load okay?

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">

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.

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