Error after hosting vue2 app on IIS and reloading

manifest.b5c070d….js:1 Uncaught SyntaxError: Unexpected token ‘<’
vendor.38ec6bf….js:1 Uncaught SyntaxError: Unexpected token ‘<’
app.7b8d427….js:1 Uncaught SyntaxError: Unexpected token ‘<’

If you check the body of the responses to those GET requests, most likely you will see that you get back HTML code for a 404 (Not Found) page.

Have you configured IIS to send back the index.html file if it can’t find the file that was requested?

1 Like