SyntaxError: expected expression, received '<' on Heroku

When I click on the index.html file on my local machine, the page loads correctly in my browser. However, when I open the herokuapp site, I get "SyntaxError: expected expression, got errors <" for all .js files that I reference in html.

error screenshot

I would appreciate any help on how to fix this.

Thank!

+3


source share


1 answer


Links are not supported when installed on Heroku. Use firebug webbar or browser developer tools to see what absolute url the browser is trying to load. This is most likely incorrect and an HTML 404 error page is returned (starting with '<')



+1


source







All Articles