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.

Cannot read property 'flags' of undefined

See original GitHub issue

🐞 bug report

Affected Package

Unknown,Just ng new project4 npm start

Is this a regression?

no

Description

ERROR in TypeError: Cannot read property β€˜flags’ of undefined at resolveAlias (E:\Project\aspnet-zero-core-5.5.0\project4\node_modules\typescript\lib\typescript.js:36513:37) at checkAliasSymbol (E:\Project\aspnet-zero-core-5.5.0\project4\node_modules\typescript\lib\typescript.js:64502:26) at checkImportBinding (E:\Project\aspnet-zero-core-5.5.0\project4\node_modules\typescript\lib\typescript.js:64534:13)

πŸ”¬ Minimal Reproduction

πŸ”₯ Exception or Error




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

🌍 Your Environment

Angular Version:




Angular CLI: 9.1.4
Node: 14.2.0
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:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

0reactions
angular-automatic-lock-bot[bot]commented, Jun 9, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

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
No, it's more likely that the binder doesn't recognise this construction as a class and doesn't mark it with the Class flag. When...
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 : WEB-18383.
Read more >
Fresh install of Angular, getting error when creating project
As soon as I run ng serve -o I get the following error: "ERROR in TypeError: Cannot read property 'flags' of undefined".
Read more >
Angular – ERROR in TypeError: Cannot read property 'flags' of ...
Angular – ERROR in TypeError: Cannot read property 'flags' of undefined. angulartypescript. I have a problem when I try to run ng serve...
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