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.

ERROR in TypeError: Cannot read property 'flags' of undefined

See original GitHub issue

🐞 bug report

Affected Package

Unknown,Just upgrade form 9.1.4 to 9.1.5.

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

ERROR in TypeError: Cannot read property β€˜flags’ of undefined

πŸ”¬ Minimal Reproduction

πŸ”₯ Exception or Error


Compiling primeng/toast : es2015 as esm2015
Compiling primeng/togglebutton : es2015 as esm2015
Compiling primeng/toolbar : es2015 as esm2015
Compiling primeng/tree : es2015 as esm2015
Compiling primeng/tristatecheckbox : es2015 as esm2015

chunk {main} main.js, main.js.map (main) 1.97 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 661 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.51 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 339 kB [initial] [rendered]
Date: 2020-05-08T02:31:39.787Z - Hash: ce73c7a432145f234c81 - Time: 10711ms

ERROR in TypeError: Cannot read property 'flags' of undefined
    at resolveAlias (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:36513:37)
    at checkAliasSymbol (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:64502:26)
    at checkImportBinding (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:64534:13)
    at checkImportDeclaration (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:64552:29)
    at checkSourceElementWorker (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:64961:28)
    at checkSourceElement (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:64800:17)
    at Object.forEach (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:317:30)
    at checkSourceFileWorker (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:65123:20)
    at checkSourceFile (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:65091:13)
    at getDiagnosticsWorker (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:65179:17)
    at Object.getDiagnostics (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:65165:24)
    at F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:98703:85
    at runWithCancellationToken (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:98665:24)
    at getBindAndCheckDiagnosticsForFileNoCache (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:98691:20)
    at getAndCacheDiagnostics (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:98956:26)
    at getBindAndCheckDiagnosticsForFile (F:\sodic2020\UI\node_modules\typescript\lib\typescript.js:98688:20)

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

🌍 Your Environment

Angular Version:


Angular CLI: 9.1.4
Node: 12.16.1
OS: win32 x64

Angular: 9.1.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.4
@angular-devkit/build-angular     0.901.4
@angular-devkit/build-optimizer   0.901.4
@angular-devkit/build-webpack     0.901.4
@angular-devkit/core              9.1.4
@angular-devkit/schematics        9.1.4
@angular/cli                      9.1.4
@ngtools/webpack                  9.1.4
@schematics/angular               9.1.4
@schematics/update                0.901.4
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0

Anything else relevant?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:17
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
petebacondarwincommented, May 8, 2020

We have just released 9.1.6 which should not have this problem. Please test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in TypeError: Cannot read property 'flags' of undefined
First check ng --version . Go to next step if you get: Angular CLI: 9.1.4 Node: 12.16Β ...
Read more >
TypeError: Cannot read property 'flags' of undefined #35021
I'm getting the error **ERROR in TypeError: Cannot read property 'flags' of undefined** When i updated to latest angular-cli packages
Read more >
Uncaught TypeError: Cannot read property 'flag' of undefined
Hello! I'll do my best to help you solve this issue. I tried to log in and check the issue, but it seems...
Read more >
Cannot read property 'flags' of undefined : WEB-18383
typescript compiler throw error: Error:Error has occurred in the compile process TypeError: Cannot read property 'flags' of undefined ; State, Won't fix.
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
That error message is telling you the function is returning undefined implicitly, but its return type does not include undefined in it. Awesome!...
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