Import from parent directory breaks migration from 10 to 11 #39778
Labels
area: migrations
Issues related to `ng update` migrations
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: confirmed
state: has PR
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No
Description
I am running a project where a ts file is imported from a directory outside the angular project. This runs fine but ng update from 10 to 11 throws a migration error.
I am aware that the recommended way is to include libraries and not ts files, but my hope would be that the migration does not fail on such imports.
If this is a won't fix I would greatly appreciate if the error message could somehow be easier to understand (it took me quite a while to figure out that I did not actually have a wrong import - since the build was running - but that the validation in the migration did not expect that import.
Thanks a lot of working on this great project. I absolutely love how easily updates usually go.. and I am fully aware that I need to keep my projects somewhat standard-compliant for this to keep working 🙃
🔬 Minimal Reproduction
I created a repo https://github.com/frederik/angular-10-11-migration-issue to reproduce the error (empty angular app, just one other file).
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: