Hosting Angular 6 application to firebase

Issue

I am trying to hosting Angular 6 application in firebase. Aftter making a project in firebase , i followed the every step in firebase hosting documentation.

https://console.firebase.google.com/project/vision-api-20789/hosting/main

after firebase deploy command i got the 2 urls

but when i go to hosting Url it is redirected to firebase hosting documentaion page.not redirected to my application.

Solution

The issue is that in angular 6 the project files aren’t output to the dist folder, in your tsconfig.json change:

"outDir": "./dist/out-tsc",

to:

"outDir": "./dist",

Answered By – Kevin192291

Answer Checked By – Gilberto Lyons (AngularFixing Admin)

Leave a Reply

Your email address will not be published.