简体   繁体   中英

Deployed my Angular application on GitHub pages but errors coming on website in console

I have published my app successfully on GitHub pages, but my website is not displaying anything.

This is my GitHub repository link: https://karimkouki-bit.github.io/angular/

Errors I am getting in console:

Failed to load resource: the server responded with a status of 404 () polyfills.c016570b002566700a06.js:1

Failed to load resource: the server responded with a status of 404 () runtime.b02196c….js:1

Failed to load resource: the server responded with a status of 404 () main.b2e32b70f6db51036a6f.js:1

Failed to load resource: the server responded with a status of 404 () styles.15af923bce632745f6cc.css:1

Failed to load resource: the server responded with a status of 404 () styles.15af923bce632745f6cc.css:1

this is the image from console

if you work on nx project then 1.nx build AppName --prod --output-path docs --base-href /RepoName/ 2.Instead Of Root Choose Docs in github

Normal Angular https://stackoverflow.com/.../angular-deploy-on-github-pages

base Url Example which created after making build

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM