Uncaught TypeError: Cannot read property 'id' of undefined
See original GitHub issueπ bug report
Affected Package
The issue is caused by package @angular/....coreIs this a regression?
Yes, the previous version in which this bug was not present was:...Description
Uncaught TypeError: Cannot read property βidβ of undefined at registerNgModuleType (core.js:23870) at core.js:23881 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:23881) at new NgModuleFactory$1 (core.js:23978) at compileNgModuleFactory__POST_R3__ (core.js:27497) at PlatformRef.bootstrapModule (core.js:27735) at Moduleβ¦/src/main.ts (main.ts:12) at webpack_require (bootstrap:79) at Object.0 (main.ts:13)
A clear and concise description of the problem...I am getting this error while upgrading my angular CLI. please help me
π¬ Minimal Reproduction
https://stackblitz.com/...π₯ Exception or Error
π Your Environment
Angular Version:
Angular CLI: 10.0.4
Node: 12.16.3
OS: win32 x64
Angular: 10.0.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: <error>
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.1000.4
@angular-devkit/build-angular 0.1000.4
@angular-devkit/build-optimizer 0.1000.4
@angular-devkit/build-webpack 0.1000.4
@angular-devkit/core 10.0.4
@angular-devkit/schematics 10.0.4
@angular/cdk 10.1.1
@angular/cli 10.0.4
@angular/http 6.1.10
@angular/material 10.1.1
@ngtools/webpack 10.0.4
@schematics/angular 10.0.4
@schematics/update 0.1000.4
rxjs 6.6.0
typescript 3.9.7
webpack 4.44.0
Anything else relevant?
I have upgraded it successfully but I donβt know why this error is occurringβ¦please help me.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot read properties of undefined (reading 'id') - TrackJS
TypeError is a subset of JavaScript Error that is thrown when code attempts to do something that does not exist on the target...
Read more >"Cannot read property 'id' of undefined" when parsing an array ...
First, as said in the comments, you need to make sure the message object passed is really the one you're looking for.
Read more >Uncaught TypeError: Cannot read property 'id' of undefined
My solution how to hundel this error ... Try and Catch is the solution but not in each place that you have the...
Read more >ERROR Cannot read property 'id' of undefined #190 - GitHub
Hi. I retrieve this error: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'id' of undefined when i add the moduleΒ ...
Read more >TypeError: Cannot read property 'id' of undefined - JavaScript
I am trying to work around the problem but it seem strange as I am not proficient with JS Objects. Following is my...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had the same issue, then I found using this helpful: https://bit.ly/30dbEhf
@blomqma Sorry that page said no Service found and redirected me back to this page.