You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ERROR in TypeError: Cannot read property 'flags' of undefined #36993
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/ **
I have same issue. ERROR in TypeError: Cannot read property 'flags' of undefined at resolveAlias (E:\Angular\node_modules\typescript\lib\typescript.js:36513:37) at checkAliasSymbol (E:\Angular\node_modules\typescript\lib\typescript.js:64502:26) at checkImportBinding (E:\Angular\node_modules\typescript\lib\typescript.js:64534:13) at checkImportDeclaration (E:\Angular\node_modules\typescript\lib\typescript.js:64552:29) at checkSourceElementWorker (E:\Angular\node_modules\typescript\lib\typescript.js:64961:28) at checkSourceElement (E:\Angular\node_modules\typescript\lib\typescript.js:64800:17) at Object.forEach (E:\Angular\node_modules\typescript\lib\typescript.js:317:30) at checkSourceFileWorker (E:\Angular\node_modules\typescript\lib\typescript.js:65123:20) at checkSourceFile (E:\Angular\node_modules\typescript\lib\typescript.js:65091:13) at getDiagnosticsWorker (E:\Angular\node_modules\typescript\lib\typescript.js:65179:17) at Object.getDiagnostics (E:\Angular\node_modules\typescript\lib\typescript.js:65165:24) at E:\Angular\node_modules\typescript\lib\typescript.js:98703:85 at runWithCancellationToken (E:\Angular\node_modules\typescript\lib\typescript.js:98665:24) at getBindAndCheckDiagnosticsForFileNoCache (E:\Angular\node_modules\typescript\lib\typescript.js:98691:20) at getAndCacheDiagnostics (E:\Angular\node_modules\typescript\lib\typescript.js:98956:26) at getBindAndCheckDiagnosticsForFile (E:\Angular\node_modules\typescript\lib\typescript.js:98688:20)
I have the same error when updating from 9.1.4 to 9.1.5.
ERROR in TypeError: Cannot read property 'flags' of undefined
at resolveAlias (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:36513:37)
at checkAliasSymbol (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:64502:26)
at checkImportBinding (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:64534:13)
at checkImportDeclaration (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:64552:29)
at checkSourceElementWorker (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:64961:28)
at checkSourceElement (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:64800:17)
at Object.forEach (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:317:30)
at checkSourceFileWorker (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:65123:20)
at checkSourceFile (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:65091:13)
at getDiagnosticsWorker (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:65179:17)
at Object.getDiagnostics (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:65165:24)
at c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:98703:85
at runWithCancellationToken (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:98665:24)
at getBindAndCheckDiagnosticsForFileNoCache (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:98691:20)
at getAndCacheDiagnostics (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:98956:26)
at getBindAndCheckDiagnosticsForFile (c:\Projects\Mithra\mithra-web\node_modules\typescript\lib\typescript.js:98688:20)
As @petebacondarwin mentioned, upgrading to 9.1.6 should fix the problem. Closing the issue now. In case the problem is still not resolved, feel free to open a new one.
Activity
guillermohernandez commentedon May 8, 2020
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
magicdict commentedon May 8, 2020
just rollback,wait for fix
petebacondarwin commentedon May 8, 2020
Possible duplicate of #36992
yangjunfocus commentedon May 8, 2020
I have same issue.
ERROR in TypeError: Cannot read property 'flags' of undefined at resolveAlias (E:\Angular\node_modules\typescript\lib\typescript.js:36513:37) at checkAliasSymbol (E:\Angular\node_modules\typescript\lib\typescript.js:64502:26) at checkImportBinding (E:\Angular\node_modules\typescript\lib\typescript.js:64534:13) at checkImportDeclaration (E:\Angular\node_modules\typescript\lib\typescript.js:64552:29) at checkSourceElementWorker (E:\Angular\node_modules\typescript\lib\typescript.js:64961:28) at checkSourceElement (E:\Angular\node_modules\typescript\lib\typescript.js:64800:17) at Object.forEach (E:\Angular\node_modules\typescript\lib\typescript.js:317:30) at checkSourceFileWorker (E:\Angular\node_modules\typescript\lib\typescript.js:65123:20) at checkSourceFile (E:\Angular\node_modules\typescript\lib\typescript.js:65091:13) at getDiagnosticsWorker (E:\Angular\node_modules\typescript\lib\typescript.js:65179:17) at Object.getDiagnostics (E:\Angular\node_modules\typescript\lib\typescript.js:65165:24) at E:\Angular\node_modules\typescript\lib\typescript.js:98703:85 at runWithCancellationToken (E:\Angular\node_modules\typescript\lib\typescript.js:98665:24) at getBindAndCheckDiagnosticsForFileNoCache (E:\Angular\node_modules\typescript\lib\typescript.js:98691:20) at getAndCacheDiagnostics (E:\Angular\node_modules\typescript\lib\typescript.js:98956:26) at getBindAndCheckDiagnosticsForFile (E:\Angular\node_modules\typescript\lib\typescript.js:98688:20)PierreMigne commentedon May 8, 2020
How can i rollback to 9.1.4 ?
destus90 commentedon May 8, 2020
https://stackoverflow.com/questions/61670882/error-in-typeerror-cannot-read-property-flags-of-undefined/61671596#61671596
igorosabel commentedon May 8, 2020
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.
SourabhJha commentedon May 8, 2020
I has same issue with 9.1.4 , So believe no point rolling back.
JoshuvaGeorge03 commentedon May 8, 2020
Same here, I am having this error too. after updating from angular 9.1.4 to 9.1.5
"@angular/animations": "^9.1.5", "@angular/common": "^9.1.5", "@angular/compiler": "^9.1.5", "@angular/core": "^9.1.5", "@angular/forms": "^9.1.5", "@angular/platform-browser": "^9.1.5", "@angular/platform-browser-dynamic": "^9.1.5", "@angular/router": "^9.1.5",
how to fix this issue?
FabienDehopre commentedon May 8, 2020
I have the same error when updating from 9.1.4 to 9.1.5.
I had to revert to 9.1.4 to solve the issue
17 remaining items
Revert "fix(compiler-cli): `isCaseSensitive()` returns correct value (#…
Revert "fix(compiler-cli): ensure `getRootDirs()` handles case-sensit…
Revert "fix(compiler-cli): ensure LogicalFileSystem handles case-sens…
Revert "fix(compiler-cli): fix case-sensitivity issues in NgtscCompil…
petebacondarwin commentedon May 8, 2020
We have just released 9.1.6 which should not have this problem. Please test.
sahad78 commentedon May 8, 2020
Upgrading to 9.1.6 has now solved the issue
Thanks
mgechev commentedon May 8, 2020
As @petebacondarwin mentioned, upgrading to 9.1.6 should fix the problem. Closing the issue now. In case the problem is still not resolved, feel free to open a new one.
SourabhJha commentedon May 9, 2020
Angular 9.1.6 solved the problems, Thank you
fix(compiler-cli): ensure LogicalFileSystem maintains case in paths (#…
angular-automatic-lock-bot commentedon 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.