Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

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

Closed
mhesham32 opened this issue Dec 14, 2017 · 5 comments
Closed

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

mhesham32 opened this issue Dec 14, 2017 · 5 comments

Comments

@mhesham32
Copy link

i get this error instead of getting an empty form

Uncaught SyntaxError: Unexpected token <

@mhesham32 mhesham32 changed the title whn reload the browser in route course/:id when reload the browser in route course/:id Dec 14, 2017
@coryhouse
Copy link
Owner

Does the initial page load okay?

@mhesham32
Copy link
Author

mhesham32 commented Dec 15, 2017

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
Copy link
Owner

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
Copy link
Author

@coryhouse
Copy link
Owner

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

@coryhouse coryhouse changed the title when reload the browser in route course/:id Unexpected token < error when reloading course/:id route Dec 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants