Skip to content

"Angular app engine manifest is not set" with Native Federation and SSR #853

Open
@sajay-g

Description

@sajay-g

With what library do you have an issue?

native-federation

Reproduction of the bug/regression with instructions

Issue while running the application with node server.mjs from dist or as docker container, I encountered the following error;

Error: Angular app engine manifest is not set. Please ensure you are using the '@angular/build:application' builder to build your server application.
    at gs (file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/browser/_angular_ssr.OxpG8ofFZH.js:38:2102)
    at <instance_members_initializer> (file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/browser/_angular_ssr.OxpG8ofFZH.js:66:948)
    at new e (file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/browser/_angular_ssr.OxpG8ofFZH.js:66:876)
    at <instance_members_initializer> (file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/browser/_angular_ssr_node.zBEd2kLqgj.js:1:4127)
    at new w (file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/browser/_angular_ssr_node.zBEd2kLqgj.js:1:4104)
    at file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/server/chunk-7B7VLUAK.mjs:64:2112
    at file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/server/chunk-2XAXBCZJ.mjs:2:795
    at file:///Users/sgopalakri38/Desktop/Sajay/Projects/aa/workspace/ssr-native-fed-poc/dist/shell/server/chunk-7B7VLUAK.mjs:64:2543
    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
Waiting for the debugger to disconnect...

Environment:
Angular Version: 19.0.0
Execution Context: dist/shell/server/*.mjs generated from ng build shell

Steps to Reproduce:

Expected behavior

  • Get the application to run successfully,

Versions of Native/Module Federation, Angular, Node, Browser, and operating system

Environment:
Angular Version: 19.0.0
Native Federation: 19.0.22

Other information

I'm using AngularNodeAppEngine not CommonEngine, facing different issues with different engine.

I would be willing to submit a PR to fix this issue

  • Yes
  • No

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