Skip to content

TypeError: Cannot read properties of undefined (reading 'cacheTag'). #769

Closed
@nsnaranjo

Description

@nsnaranjo

Hi!!
I'm testing Native Federation in an Angular v19 application configured with SSR (Server-Side Rendering). I configured Native Federation in the host application, and it works correctly. However, when I install and configure it in the remote application, running the application throws the following error:

TypeError: Cannot read properties of undefined (reading 'cacheTag').

Here is the package.json:
{
"name": "rick-and-morty-remote",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"serve:ssr:rick-and-morty-remote": "node dist/rick-and-morty-remote/server/server.mjs"
},
"private": true,
"dependencies": {
"@angular/animations": "^19.1.0",
"@angular/common": "^19.1.0",
"@angular/compiler": "^19.1.0",
"@angular/core": "^19.1.0",
"@angular/forms": "^19.1.0",
"@angular/platform-browser": "^19.1.0",
"@angular/platform-browser-dynamic": "^19.1.0",
"@angular/platform-server": "^19.1.0",
"@angular/router": "^19.1.0",
"@angular/ssr": "^19.1.7",
"cors": "^2.8.5",
"es-module-shims": "^1.5.12",
"express": "^4.18.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-architects/native-federation": "^19.0.10",
"@angular-devkit/build-angular": "^19.1.7",
"@angular/cli": "^19.1.7",
"@angular/compiler-cli": "^19.1.0",
"@softarc/native-federation-node": "^2.0.22",
"@types/express": "^4.17.17",
"@types/jasmine": "~5.1.0",
"@types/node": "^18.18.0",
"jasmine-core": "~5.5.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.7.2"
}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions