Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend doesn't load when serving from backend #663

Closed
EddyIonescu opened this issue Jul 1, 2020 · 3 comments
Closed

Frontend doesn't load when serving from backend #663

EddyIonescu opened this issue Jul 1, 2020 · 3 comments
Labels
Bug Something isn't working

Comments

@EddyIonescu
Copy link
Member

The changes made to support the static build caused an error to be thrown when loading the frontend from the application Uncaught SyntaxError: Unexpected token '<'

This breaks our Heroku deployments (eg. https://eddy-opentransit.herokuapp.com/) as those use the application to serve the frontend.

@EddyIonescu EddyIonescu added the Bug Something isn't working label Jul 1, 2020
@EddyIonescu
Copy link
Member Author

@akgupta89 just wondering did you have any ideas for this? Otherwise I'll look into investigating it.

@hathix
Copy link
Member

hathix commented Jul 9, 2020

I think this is the same as #651: an HTML file is being sent as JavaScript, and JavaScript sees a "<" to open a tag and freaks out.

@EddyIonescu
Copy link
Member Author

#664

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants