-
Notifications
You must be signed in to change notification settings - Fork 26.2k
fix(core): add missing migration to npm package #29705
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
Conversation
While running `ng update @angular/core --next`, the following error would be displayed: ``` Cannot find module '....\node_modules\@angular\core\schematics\migrations\template-var-assignment\index' ``` This happened because the Schematics migration was referenced, but not included. This commit fixes that bug by including the migration in the Bazel npm package dependencies.
You can preview 70d407f at https://pr29705-70d407f.ngbuilds.io/. |
You can preview 3aa435d at https://pr29705-3aa435d.ngbuilds.io/. |
How does the schematic actually run right now? We were talking about enabling it for beta/rc, but I was under the impression that it doesn't run right now because the migration targets v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also LGTM for adding this to the ng_package
anyway.
@devversion I was updating angular/angular-cli#14079 to actually try to update to the next angular versions via It runs because it's listed in the core migrations: angular/packages/core/schematics/migrations.json Lines 8 to 12 in 699ecac
IIRC as long as this package is updated to and the version matches, the migrations will run. @clydin might know more about the specifics. |
@filipesilva Yeah it's clear that these are part of the |
Even though we don't run the migration, we still require() it so that's why we need this fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
While running `ng update @angular/core --next`, the following error would be displayed: ``` Cannot find module '....\node_modules\@angular\core\schematics\migrations\template-var-assignment\index' ``` This happened because the Schematics migration was referenced, but not included. This commit fixes that bug by including the migration in the Bazel npm package dependencies. PR Close angular#29705
While running `ng update @angular/core --next`, the following error would be displayed: ``` Cannot find module '....\node_modules\@angular\core\schematics\migrations\template-var-assignment\index' ``` This happened because the Schematics migration was referenced, but not included. This commit fixes that bug by including the migration in the Bazel npm package dependencies. PR Close angular#29705
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. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
While running
ng update @angular/core --next
, the following error would be displayed:This happened because the Schematics migration was referenced, but not included.
What is the new behavior?
This commit fixes that bug by including the migration in the Bazel npm package dependencies.
Does this PR introduce a breaking change?