New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng update wrote wrong path of main.ts and polyfill.ts in tsconfig.app.json #16800
Comments
Heya, thanks for the detailed repro! This happens because of the windows-style path separators in your
Technically the config file only supports unix-style paths. But we don't enforce it, and in most places just silently accept the windows-style paths. |
@SachinShekhar by the way, how did you get those paths? Did you add them yourself, or were they generated automatically by CLI, or even by Nx? |
@filipesilva Those paths were generated automatically by CLI. |
@SachinShekhar do you remember what the commands were that generated the paths with I see them in the SachinShekhar/angular-ssr-prerendering-bug@593f599 commit but don't know what made them. I don't think we have a command that would change the paths for an existing app after |
@filipesilva Oh, I see it was updated later. I strongly believe |
@SachinShekhar ah I see! @FrozenPandaz heya, if Nx is writing windows paths in |
I made the fix :) ^ |
Awesome, thanks @FrozenPandaz! Also have a fix of our own for the migrations incoming. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
N/AIs this a regression?
Yes, the previous version in which this bug was not present was: v8Description
After upgrading to v9, I found that path of main.ts and polyfill.ts are wrongly written in tsconfig.app.json which makes the app unusable.馃敩 Minimal Reproduction
Checkout this commit SachinShekhar/angular-ssr-prerendering-bug@593f599 and run
ng update @angular/core @angular/cli --next
The result will be SachinShekhar/angular-ssr-prerendering-bug@5528e5f#diff-d090b1ccd7cff3dfff369e150143bb09
馃敟 Exception or Error
This error is thrown when I run
ng serve
.馃實 Your Environment
Angular Version:
Anything else relevant?
This project uses NX schematics. I've a feeling that it is the culprit.
The text was updated successfully, but these errors were encountered: