-
Notifications
You must be signed in to change notification settings - Fork 239
Open
Description
With what library do you have an issue?
native-federation
Reproduction of the bug/regression with instructions
- Run
ng new --ssr - Run
ng add @angular-architects/native-federation --type dynamic-host - Run
npm start
Looks like the schematic is missing a curly brace in the bootstrap-server generated file, but even after fixing that I come across multiple other errors while trying to run the local dev server or do a build and serve:ssr command.
Oftentimes, the fstart.mjs cannot locate the ../browser/remoteEntry.json file despite it being there.
node:internal/fs/promises:633
return new FileHandle(await PromisePrototypeThen(
^
Error: ENOENT: no such file or directory, open '../browser/remoteEntry.json'
at async open (node:internal/fs/promises:633:25)
at async Module.readFile (node:internal/fs/promises:1237:14)
at async loadFsFederationInfo (file:///my-app/dist/my-app/server/fstart.mjs:324:19)
at async createNodeImportMap (file:///my-appt/dist/my-app/server/fstart.mjs:308:20)
at async initNodeFederation (file:///my-app/dist/my-app/server/fstart.mjs:297:21)
at async file:///my-app/dist/my-app/server/fstart.mjs:397:3 {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '../browser/remoteEntry.json'
}
Expected behavior
Native federation apps should work out of the box with default Angular SSR apps.
Versions of Native/Module Federation, Angular, Node, Browser, and operating system
"@angular-architects/native-federation": "^20.1.7"
"@angular/cli": "^20.3.6"
Node: 24.1.0
MacOS 15.7
Other information
No response
I would be willing to submit a PR to fix this issue
- Yes
- No
Metadata
Metadata
Assignees
Labels
No labels