-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Closed
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercore: hot module replacement (HMR)state: has PR
Milestone
Description
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
When running nx run client:serve , i'm getting this error after upgrading to v19 :
TypeError: Cannot read properties of undefined (reading 'fileName')
at extractHmrMetatadata (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.j
here is my config:
"serve": {
"configurations": {
"development": {
"buildTarget": "client:build:development",
"hmr": true
},
"local": {
"buildTarget": "client:build:local",
"hmr": true
},
"production": {
"buildTarget": "client:build:production"
}
},
when i disable HMR it solves the issue ..
serve": {
"configurations": {
"development": {
"buildTarget": "client:build:development",
"hmr": false
},
"local": {
"buildTarget": "client:build:local",
"hmr": false
},
"production": {
"buildTarget": "client:build:production"
}
},
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
✘ [ERROR] Angular compilation emit failed. [plugin angular-compiler]
TypeError: Cannot read properties of undefined (reading 'fileName')
at extractHmrMetatadata (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:13881:54)
at ComponentDecoratorHandler.compileFull (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:14797:38)
at TraitCompiler.compile (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:2771:38)
at IvyCompilationVisitor.visitClassDeclaration (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:3080:37)
at file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:3024:68
at IvyCompilationVisitor._visitListEntryNode (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:3008:20)
at IvyCompilationVisitor._visit (file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:3024:26)
at file:///Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/@angular+compiler-cli@19.2.1_@angular+compiler@19.2.1_@angular+core@19.2.1_rxjs@7.8.2_zone.js@0.14.10___typescript@5.7.3/node_modules/@angular/compiler-cli/bundles/chunk-J2ZUZS7X.js:3022:63
at visitArrayWorker (/Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/typescript.js:94322:49)
at visitNodes2 (/Users/rafikbelkadi/Desktop/recapp/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/typescript.js:94293:19)
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 19.2.1
Node: 22.10.0
Package Manager: pnpm 9.1.3
OS: darwin arm64
Angular: 19.2.1
... animations, build, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1902.1 (cli-only)
@angular-devkit/build-angular 19.2.1
@angular-devkit/core 19.2.1
@angular-devkit/schematics 19.2.1
@angular/cdk 19.2.2
@angular/material 19.2.2
@schematics/angular 19.2.1
ng-packagr 19.2.0
rxjs 7.8.2
typescript 5.7.3
webpack 5.98.0
zone.js 0.14.10
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercore: hot module replacement (HMR)state: has PR