Skip to content

Deploying SSR enabled Angular 17 application is not supported #3463

@misomarcell

Description

@misomarcell

Version info

Angular: 17.0.2

Firebase:

AngularFire: 17.0.0-next.0

How to reproduce these conditions

  1. Create a new Angular 17 application using ng new
  2. Make sure you have the latest firebase-tools installed. For me it's 12.8.1
  3. Run firebase experiments:enable webframeworks to enable webframeworks
  4. Deploy the application using firebase deploy command

Expected behavior

After the application is deployed, you should be able to access it on the generated URL

Actual behavior

Page Not Found error on the generated URL.

Additional notes

  • If there already is a "hosting" property in firebase.json, rather than extending that, it just appends a new object below it with "source" and "frameworksBackend"
  • Seems like angularfire's deploy builder is currently not compatible with the new Angular 17 way of building SSR applications. Although upon adding the package, angular.json is updated with a deploy builder, it only has a "browserTarget" property, but neither a "serverTarget" nor "ssr", but even after adding them manually, the deployed application displays a Page Not Found error, probably because no function or cloud run instance were created for the frontend server.

I couldn't find information on this being simply a bug, or the needed feature is under development, and will eventually be available in the next stable release. In any case, for tracking the progress and to inform other developers who might end up in the same situation as me, I'm opening this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions