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:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >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
Run: npm install @angular/core@9.1.4 @angular/animations@9.1.4 @angular/common@9.1.4 @angular/forms@9.1.4 @angular/platform-browser@9.1.4 @angular/router@9.1.4 @angular/platform-browser-dynamic@9.1.4 @angular/compiler@9.1.4 @angular/compiler-cli@9.1.4 @angular/language-service@9.1.4
ng build
From: https://stackoverflow.com/a/61671596/5157008
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.