Stuck on angular 2 deployment to github pages

Hello,

anyone there has deployed angular 2 app on github pages. If yes please guide me thorugh here I dont get it why this app is not getting deployed and I am getting the below error

Failed to load resource: the server responded with a status of 404 (Not Found)
only my index page is loading

https://atharvajava.github.io/ng4Portfolio/

I’m not sure exactly what the problem is, but I quickly found https://atharvajava.github.io/ng4Portfolio/“https://atharvajava.github.io/ng4Portfolio/vendor.c8b5a173c5060326e442.bundle.js was one of the requests. I’m guessing that should be https://atharvajava.github.io/ng4Portfolio/vendor.c8b5a173c5060326e442.bundle.js. Hope that steers you in the right direction!

@P1xt ut that is the autogenerated part now how do I edit it. That branch was auto generated from CLI using ngh

@P1xt I tried to build it using your method I get the below error

GET https://atharvajava.github.io/ng4Portfolio/“https://atharvajava.github.io/ng4Portfolio/main.9b2961eb2e8335358700.bundle.js 404 (Not Found)

But when I am using my local I am not getting such errors

I could have fixed that up if I knew whats wrong … it is running fine on my local I dont know why I am getting this error when deploying

@P1xt Just updating answer I found the solution to the above we need to change the base href=’/ng4Portfolio/’ then it works for me