I’m trying to deploy my AngularDart 5 web app to Firebase. These are the steps I followed:
pub run build_runner build --output build
.firebase init
and setted web
folder as the public folder.firebase deploy
.⚠ The problem is that when I open the website I find only a blank page.
❔ What I’m doing wrong?
Thank you!
Yes, I am still having this issue. The content of my firebase.json
is:
{
"hosting": {
"public": "web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
I don’t know if it helps, but my pubspec.yaml
file is:
name: angular_app
description: Angular App
version: 0.0.1
environment:
sdk: '>=2.0.0-dev.63.0 <2.0.0'
dependencies:
sass_builder: ^2.0.2
angular: ^5.0.0-alpha+15
angular_forms: ^2.0.0-alpha+7
angular_router: ^2.0.0-alpha+14
dev_dependencies:
angular_test: ^2.0.0-alpha+13
build_runner: ^0.8.9
build_test: ^0.10.2+5
build_web_compilers: ^0.4.0+4
test: ^1.0.0
When I deploy on firebase or when I serve the app with firebase serve
, I see only “Loading...”.
Thanks for your help!
firebase deploy
to deploy rather than pub.firebase.json
file, the hosting.public
entry shown above is just "web"
but your build output directory is "build". The entry should probably be "build/web".<base href>
in your index.html
? If so, to which href
value?