-
Notifications
You must be signed in to change notification settings - Fork 12k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating from 6.1 to 7.2 does not remove/move reflect metadata polyfill #13491
Comments
Hi, I tried to replicate this and the Can you setup a minimal repro please? This might be related to your directory structure so its really important to get an accurate repro to diagnose this. Thanks |
In attempting to create a minimal repro by amputating my application until it resembled a fresh Angular project and the migration still failing to remove the polyfill, I think I've narrowed in on the difference between a successful migration and one that doesn't remove the reflect polyfill. The key difference was whether I ran On a side note, I do find it odd that the migration removes the polyfill import but not the comment describing it. |
@Astrophizz, the problem seems to be caused because of an older version of Also you don't need to depending on these packages directly as this might cause undefined behaviour.
|
Thanks for finding that and for the guidance! The rest of this comment may be more useful to anyone who stumbles across this in the future. Those references to |
Hey, |
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
Command (mark with an
x
)Is this a regression?
No.
Description
According to the blog post about Angular 7, updating to Angular 7 should remove the reflect metadata polyfill. The work in #12314, #12611, and #12625 suggests it might also get moved the the dev environment, though discussions around the code seem to disagree. No changes are made to polyfill.ts when updating.
🔬 Minimal Reproduction
Run
ng update --all --force
on an Angular 6 application (this works around other outstanding issues withng update
).🌍 Your Environment
Anything else relevant?
Not that I can think of. It might be nice for the Angular Update Guide to explain how to manually migrate the polyfill if the automated migration does not do anything.
The text was updated successfully, but these errors were encountered: