question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read property 'id' of undefined

See original GitHub issue

🐞 bug report

Affected Package

The issue is caused by package @angular/....core

Is 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
blomqmacommented, Jul 30, 2020

Had the same issue, then I found using this helpful: https://bit.ly/30dbEhf

2reactions
vugar005commented, Aug 2, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found