-
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
ng update not running migration.json schematic #13139
Comments
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation. |
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 or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
node --version
v8.11.3
npm --version
6.4.1
Repro steps
I have a private project so I am unable to share the repo, so sorry in advance. I have an angular project to which I have added schematics support so I can update it using
ng update
. So I have a schematics folder with amigration.json
file :tsconfig.schematics.json
:tsconfig.schematics.spec.json
:jasmine.json
:I have an
ng-update
folder withindex.ts
:package.json
for my nav menu project :Once I publish my package I try to update
nav-menu
in one of my other application's which use this package. I have tried a number of different commands and non of them seem to run themigration.json
schematic onng update
. So I have tried :ng update @solarwinds/nav-menu-with-migration --to=1.0.0-nav-menu-with-migration.3 --migrate-only
and I get the following error:
Incompatible peer dependencies found. See above
So I tried with
--force
flag and I do get mypackage.json
file updated but I never see mymigration.json
schematic run.g update @solarwinds/nav-menu-with-migration --to=1.0.0-nav-menu-with-migration.3 --force --migrate-only
I am not sure why my
ng update
command is not run. I wanted to test mymigration.json
schematic so I pointed mycollection.json
to point tong-update/index
so that when I runng add @solarwinds/[email protected]
I can see if myng-update
code work and it does work as expected (Note: this was only to test purpose and I do not intend to useng add
to run migrations). Here is the output :Can someone help me with
ng update
here. Please, Thank you in advance!!The text was updated successfully, but these errors were encountered: