I want to develop the angular 6 apps, but after deploying firebase showing only welcome page.
Here are the steps I have taken to deploy.
ng build --prod
againdist
directory hence I copied all the content from the subdirectory which contains index.html to dist/
.but after doing all that I am still getting welcome page in the link.
What am I doing wrong!?
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary! This is some kind of annoying think that you have to face when you deploy your application in to firebase. You can fix it easily after the firebase init , firebase.
Deploy an Angular application on Firebase 10) Chose "Analytics location". Select "I accept the Google Analytics terms" and click on "Create project". 11) Go to Angular CLI and run this command. If there is any error, then run with sudo.
Try: 8. File dist/index.html already exists. Overwrite? (y/N) N and open link to your app in incognito mode. Seriously, I stuck for hours because this firebase index got cached in my case, so this was the reason why I could't see my app after deploy.
Browser cache was my issue as well. As mentioned above, try in incognito or use proxysite.com (very useful website) to avoid browser cache
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