Garrett Sanderson Garrett Sanderson - 1 month ago 5x
AngularJS Question

Angular 2 App Production Stuck On Loading (404 Errors)

I am trying to put an angular 2 app into production on github pages.

I am referencing the /docs folder on my master branch and have the following files in the directory






The page loads but it gets stuck on loading....

And I get the following 404 Errors.

Console Erros

I tried this on my own domain and I get the same problem so I know its not github pages.

Any help would be greatly appreciated! Thanks!


You are using an incorrect <base href="/"> causing the browser to look for the files in their parent directory instead of their actual directory.

Either adjust the base href to /pazu-prototype/ or remove it if you are not using HTML5 mode for urls.