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 exception using ivy

See original GitHub issue

🐞 bug report

Affected Package

Unknown.

Is this a regression?

Only happen when using Ivy.

Description

An unhandled exception occurs immediately, and my app does not load.

πŸ”₯ Exception or Error


core.js:30223 Uncaught TypeError: Cannot read property 'id' of undefined
    at registerNgModuleType (core.js:30223)
    at core.js:30241
    at Array.forEach (<anonymous>)
    at registerNgModuleType (core.js:30237)
    at new NgModuleFactory$1 (core.js:30375)
    at compileNgModuleFactory__POST_R3__ (core.js:34663)
    at PlatformRef.bootstrapModule (core.js:34960)
    at Module../src/main.ts (main.ts:11)
    at __webpack_require__ (bootstrap:79)
    at Object.0 (main.ts:11)

🌍 Your Environment

Angular Version:




Angular CLI: 8.1.0-beta.3
Node: 12.4.0
OS: darwin x64
Angular: 8.1.0-rc.0
... animations, common, compiler, compiler-cli, core, elements
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.801.0-beta.3
@angular-devkit/build-angular     0.801.0-beta.3
@angular-devkit/build-optimizer   0.801.0-beta.3
@angular-devkit/build-webpack     0.801.0-beta.3
@angular-devkit/core              8.1.0-beta.3
@angular-devkit/schematics        8.1.0-beta.3
@angular/cli                      8.1.0-beta.3
@ngtools/json-schema              1.1.0
@ngtools/webpack                  8.1.0-beta.3
@schematics/angular               8.1.0-beta.3
@schematics/update                0.801.0-beta.3
ng-packagr                        5.3.0
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.35.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:29 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
hugoebarbozacommented, Oct 2, 2019

same error for my, any solution?

3reactions
WilliamSfcommented, Oct 1, 2019

`Angular CLI: 8.3.6 Node: 10.16.3 OS: linux x64 Angular: 9.0.0-next.8 … animations, common, compiler, compiler-cli, core, forms … language-service, platform-browser, platform-browser-dynamic … router

Package Version

@angular-devkit/architect 0.803.6 @angular-devkit/build-angular 0.803.6 @angular-devkit/build-optimizer 0.803.6 @angular-devkit/build-webpack 0.803.6 @angular-devkit/core 8.3.6 @angular-devkit/schematics 8.3.6 @angular/cdk 8.2.2 @angular/cli 8.3.6 @angular/flex-layout 8.0.0-beta.27 @angular/material 8.2.2 @ngtools/webpack 8.3.6 @schematics/angular 8.3.6 @schematics/update 0.803.6 rxjs 6.5.3 typescript 3.5.3 webpack 4.39.2 `

package.json "dependencies": { "@angular/animations": "~9.0.0-next.8", "@angular/cdk": "^8.2.2", "@angular/common": "~9.0.0-next.8", "@angular/compiler": "~9.0.0-next.8", "@angular/core": "~9.0.0-next.8", "@angular/flex-layout": "^8.0.0-beta.27", "@angular/forms": "~9.0.0-next.8", "@angular/material": "^8.2.2", "@angular/platform-browser": "~9.0.0-next.8", "@angular/platform-browser-dynamic": "~9.0.0-next.8", "@angular/router": "~9.0.0-next.8", "hammerjs": "^2.0.8", "json-server": "^0.15.1", "module-alias": "^2.2.1", "moment": "^2.24.0", "ngx-file-drop": "^8.0.7", "rxjs": "~6.5.3", "stacktrace-js": "^2.0.1", "tslib": "^1.9.0", "zone.js": "~0.10.2" }

error: Uncaught TypeError: Cannot read property 'id' of undefined at registerNgModuleType (core.js:34738) at core.js:34756 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:34752) at core.js:34756 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:34752) at new NgModuleFactory$1 (core.js:34919) at compileNgModuleFactory__POST_R3__ (core.js:40668) at PlatformRef.bootstrapModule (core.js:41010)

Any solution ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Handling
If an unhandled exception occurs while executing IvyScript or Java code then the calling process element throws an error with the Error CodeΒ ......
Read more >
Problems with enabling Ivy in Angular 10
We have a problem with our angular app. We recently updated to angular 10 and enabled Ivy and aot. Now we are running...
Read more >
error: failed to initialize angular compilation - ngcc failed.
I had the error: Unknown arguments: use-program-dependencies, useProgramDependencies An unhandled exception occurred: NGCC failed. See "C:\...\angular-errors.
Read more >
Unhandled exception type when I add throws ...
I have @Data in the beginning of class and I overrides one getter function which throws Exception. But it gets error "unhandled exception...
Read more >
ivy
Stock photography and how to use it. ... By using this website you agree to the terms of use. Links. Uncaught exception thrown...
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