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
The issue is caused by package @angular/compiler-cli (ngcc)
Is this a regression?
Yes, the previous version in which this bug was not present was: `9.1.0`
Description
In JIT mode build fails with
File name 'node_modules/apollo-angular/selectpipe.d.ts' differs from already included file name 'node_modules/apollo-angular/SelectPipe.d.ts' only in casing
In AOT mode build fails with
Symbol SelectPipe declared in * is not exported from apollo-angular
ERROR in node_modules/apollo-angular/ApolloModule.d.ts:4:25 - error TS1149: File name '/Users/blah/Documents/ngrepros/ngccbug/node_modules/apollo-angular/selectpipe.d.ts' differs from already included file name '/Users/blah/Documents/ngrepros/ngccbug/node_modules/apollo-angular/SelectPipe.d.ts' only in casing.
4 import * as ɵngcc1 from './selectpipe';
Also if I enable aot the error is different:
ERROR in Symbol SelectPipe declared in /Users/blah/Documents/ngrepros/ngccbug/node_modules/apollo-angular/selectpipe.d.ts is not exported from apollo-angular (import into /Users/blah/Documents/ngrepros/ngccbug/src/app/app.component.ts)
same issue i had this morning when i installed a clean version of angular 9 globally
ERROR in TypeError: Cannot read property 'flags' of undefined
at resolveAlias (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:36513:37)
at checkAliasSymbol (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64502:26)
at checkImportBinding (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64534:13)
at checkImportDeclaration (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64552:29) at checkSourceElementWorker (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64961:28)
@XIAOtaoliu - for now roll-back your Angular versions to 9.1.4.
You can do this by changing all the @angular/... framework packages in your package.json to 9.1.4.
@XIAOtaoliu - for now roll-back your Angular versions to 9.1.4.
You can do this by changing all the @angular/... framework packages in your package.json to 9.1.4.
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
owi1972 commentedon May 8, 2020
It also worked in 9.1.3
sandervn commentedon May 8, 2020
The build fails in 9.1.5 if Ivy is enabled. If it's not enabled, it succeed.
wvankuipers commentedon May 8, 2020
Just had the same issue, 9.1.4 builds fine, but 9.1.5 gives the same issue with duplicated file names and incorrect casing.
wvankuipers commentedon May 8, 2020
Probably related to #36968
cedricduffournet commentedon May 8, 2020
Same issue with angulartics lib: angulartics/angulartics2#380
petebacondarwin commentedon May 8, 2020
Thanks for the reproduction @n9niwas. It made all the difference!
I have found the problem. It is a bug in ngcc.
During processing ngcc is spotting that the operating system is case-insensitive and then adding imports to files with canonical paths. E.g.
Note that there are two imports to the same file:
The first is from the original file. The second is added by ngcc.
Working on a fix.
tnlthanzeel commentedon May 8, 2020
same issue i had this morning when i installed a clean version of angular 9 globally
ERROR in TypeError: Cannot read property 'flags' of undefined
at resolveAlias (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:36513:37)
at checkAliasSymbol (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64502:26)
at checkImportBinding (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64534:13)
at checkImportDeclaration (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64552:29) at checkSourceElementWorker (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64961:28)
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.4",
"@angular/cli": "~9.1.4",
"@angular/compiler-cli": "~9.1.4",
"@angular/language-service": "~9.1.4",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.8.3"
}
Angular CLI: 9.1.4
Node: v12.13.0
OS: windows 10
NPM : 6.12.0
i just did "ng new helloword" and after the project was created i tried "ng s -o" and threw the error above
please help
timonohe commentedon May 8, 2020
Nice, thanks for the quick help!
cedricduffournet commentedon May 8, 2020
Waiting for a fix or install previous angular version (previous than 9.1.5 in my case)
petebacondarwin commentedon May 8, 2020
@XIAOtaoliu - for now roll-back your Angular versions to 9.1.4.
You can do this by changing all the
@angular/...framework packages in yourpackage.jsonto 9.1.4.E.g.
And then re-installing your dependencies (i.e.
yarnornpm install).tnlthanzeel commentedon May 8, 2020
this is a temporary fix ryt?
NamrataDG commentedon May 8, 2020
My Angular versions are already pointing to 9.1.4.But its still failing.
"dependencies": {
"@angular/animations": "~9.1.4",
"@angular/common": "~9.1.4",
"@angular/compiler": "~9.1.4",
"@angular/core": "~9.1.4",
"@angular/forms": "~9.1.4",
"@angular/platform-browser": "~9.1.4",
"@angular/platform-browser-dynamic": "~9.1.4",
"@angular/router": "~9.1.4",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.4",
"@angular/cli": "~9.1.4",
"@angular/compiler-cli": "~9.1.4",
"@angular/language-service": "~9.1.4",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
34 remaining items
petebacondarwin commentedon May 8, 2020
We have just released 9.1.6 which should not have this problem. Please test.
christopherthielen commentedon May 8, 2020
9.1.6 works for me, thanks for the quick turnaround!
cedricduffournet commentedon May 8, 2020
9.1.6 works for me also, 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.
johndobrien commentedon May 14, 2020
This is back after upgrading to 9.1.7
petebacondarwin commentedon May 14, 2020
Can you provide more details in a fresh issue please @webm0nk3y
fix(compiler-cli): ensure LogicalFileSystem maintains case in paths
fix(compiler-cli): ensure LogicalFileSystem maintains case in paths (#…
angular-automatic-lock-bot commentedon Jun 14, 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.
fix(compiler-cli): ensure LogicalFileSystem maintains case in paths (a…