I am working on angular project . I want to apply PWA (Progressive web app) to my application. Here are the commands I followed.
ng build --prod
cd dist/appname
http-server -p 8082
when I open the 127.0.0.1:8082/#/ or localhost:8082/#/ it is showing following error
This page isn’t working localhost sent an invalid response. ERR_INVALID_REDIRECT
How to fix it?
http-server
has been broken recently, you can either :
"http-server": "0.9.0",
)http-server
like @Ruina suggestedYou have to directly call index.html
. At least that's what worked for me just now.
Try: http://127.0.0.1:8080/index.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With