angular: ERROR in TypeError: Cannot read property 'flags' of undefined
🐞 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?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 16
- Comments: 15 (4 by maintainers)
Commits related to this issue
- fix(compiler-cli): ensure LogicalFileSystem maintains case in paths The work to support case-sensitivity in the `FileSystem` went too far with the `LogicalFileSystem`, which is used to compute import... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- fix(compiler-cli): ensure LogicalFileSystem maintains case in paths The work to support case-sensitivity in the `FileSystem` went too far with the `LogicalFileSystem`, which is used to compute import... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "test(compiler-cli): ensure reflection tests are not brittle to case-sensitivity (#36968)" This reverts commit dcf1dcb757d523bb2347fb7dfecb5985a1106ed7. The changes to the case-sensitivity ha... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "test(compiler-cli): ensure partial-evaluator tests are not brittle to case-sensitivity (#36968)" This reverts commit c6e5225ec346b894d1890cb1e320dca7deeb6615. The changes to the case-sensiti... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "test(compiler-cli): ensure indexer tests are not brittle to case-sensitivity (#36968)" This reverts commit 3361f59a4f26c181f22dfe6181592f82ec115798. The changes to the case-sensitivity handl... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): use CompilerHost to ensure canonical file paths (#36968)" This reverts commit 7e9d5f5e826ee80b60d6f6e6e5d17dc94cb491c3. The changes to the case-sensitivity handling in #36... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): normalize mock Windows file paths correctly (#36968)" This reverts commit 654868f5840597b16adf9ff7f71d0e9f32f04946. The changes to the case-sensitivity handling in #36968 ... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): ensure `MockFileSystem` handles case-sensitivity (#36968)" This reverts commit b6c042d0a35b977fc1ab51827805b73dfceefabb. The changes to the case-sensitivity handling in #3... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): `isCaseSensitive()` returns correct value (#36968)" This reverts commit 4becc1bc9531b79e0d834e453981655897571bdf. The changes to the case-sensitivity handling in #36968 ca... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): ensure `getRootDirs()` handles case-sensitivity (#36968)" This reverts commit 5bddeea559754283d6f51741741a313f8f4c20be. The changes to the case-sensitivity handling in #36... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): ensure LogicalFileSystem handles case-sensitivity (#36968)" This reverts commit 65337fb8b8d9d16407c182af935dd737beaea7dd. The changes to the case-sensitivity handling in #... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): fix case-sensitivity issues in NgtscCompilerHost (#36968)" This reverts commit 4abd60361a7f27305c5add4f14927caf63482af3. The changes to the case-sensitivity handling in #3... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- fix(compiler-cli): ensure LogicalFileSystem maintains case in paths The work to support case-sensitivity in the `FileSystem` went too far with the `LogicalFileSystem`, which is used to compute import... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- fix(compiler-cli): ensure LogicalFileSystem maintains case in paths The work to support case-sensitivity in the `FileSystem` went too far with the `LogicalFileSystem`, which is used to compute import... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- fix(compiler-cli): ensure LogicalFileSystem maintains case in paths The work to support case-sensitivity in the `FileSystem` went too far with the `LogicalFileSystem`, which is used to compute import... — committed to petebacondarwin/angular by petebacondarwin 4 years ago
- Revert "test(compiler-cli): ensure reflection tests are not brittle to case-sensitivity (#36968)" (#37003) This reverts commit dcf1dcb757d523bb2347fb7dfecb5985a1106ed7. The changes to the case-sensi... — committed to angular/angular by petebacondarwin 4 years ago
- Revert "test(compiler-cli): ensure partial-evaluator tests are not brittle to case-sensitivity (#36968)" (#37003) This reverts commit c6e5225ec346b894d1890cb1e320dca7deeb6615. The changes to the cas... — committed to angular/angular by petebacondarwin 4 years ago
- Revert "test(compiler-cli): ensure indexer tests are not brittle to case-sensitivity (#36968)" (#37003) This reverts commit 3361f59a4f26c181f22dfe6181592f82ec115798. The changes to the case-sensitiv... — committed to angular/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): use CompilerHost to ensure canonical file paths (#36968)" (#37003) This reverts commit 7e9d5f5e826ee80b60d6f6e6e5d17dc94cb491c3. The changes to the case-sensitivity handli... — committed to angular/angular by petebacondarwin 4 years ago
- Revert "fix(compiler-cli): normalize mock Windows file paths correctly (#36968)" (#37003) This reverts commit 654868f5840597b16adf9ff7f71d0e9f32f04946. The changes to the case-sensitivity handling i... — committed to angular/angular by petebacondarwin 4 years ago
We have just released 9.1.6 which should not have this problem. Please test.
just rollback,wait for fix
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
Same issue, updating 9.1.4 to 9.1.5. Weird thing is that only happens on Win10, on macOS 10.15.4 works fine.
https://stackoverflow.com/questions/61670882/error-in-typeerror-cannot-read-property-flags-of-undefined/61671596#61671596