You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 a migration.json file :
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 the migration.json schematic on ng 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
Package "@solarwinds/nova-xui" has an incompatible peer dependency to "@angular/cdk" (requires "6.3.3", would install "6.4.7").
Package "@angular/http" has an incompatible peer dependency to "@angular/core" (requires "6.1.0" (extended), wouldinstall "6.1.10").
Package "@angular/platform-browser-dynamic" has an incompatible peer dependency to "@angular/common" (requires "6.1.0" (extended), would install "6.1.10").
Package "@angular/router" has an incompatible peer dependency to "@angular/platform-browser" (requires "6.1.10", would install "6.1.0")
Package "@solarwinds/nova-xui" has an incompatible peer dependency to "@angular/router" (requires "6.1.4" (extended), would install "6.1.10").
Package "@solarwinds/nova-xui" has an incompatible peer dependency to "rxjs" (requires "6.2.2", would install "6.3.3").
Incompatible peer dependencies found. See above.
So I tried with --force flag and I do get my package.json file updated but I never see my migration.json schematic run.
g update @solarwinds/nav-menu-with-migration --to=1.0.0-nav-menu-with-migration.3 --force --migrate-only
Package "@solarwinds/nova-xui" has an incompatible peer dependency to "rxjs" (requires "6.2.2", would install "6.3.3").
Package "@solarwinds/nova-xui" has an incompatible peer dependency to "@angular/cdk" (requires "6.3.3", would install "6.4.7").
Package "@angular/platform-browser-dynamic" has an incompatible peer dependency to "@angular/core" (requires "6.1.0" (extended), would install "6.1.10").
Package "@angular/router" has an incompatible peer dependency to "@angular/platform-browser" (requires "6.1.10", would install "6.1.0")
Package "@solarwinds/nova-xui" has an incompatible peer dependency to "@angular/router" (requires "6.1.4" (extended), would install "6.1.10").
Package "@angular/platform-browser-dynamic" has an incompatible peer dependency to "@angular/common" (requires "6.1.0" (extended), would install "6.1.10").
Updating package.json with dependency rxjs @ "6.3.3" (was "6.2.2")...
Updating package.json with dependency @angular/cdk @ "6.4.7" (was "6.4.3")...
Updating package.json with dependency @angular/core @ "6.1.10" (was "6.1.0")...
Updating package.json with dependency @angular/router @ "6.1.10" (was "6.1.0")...
Updating package.json with dependency @angular/common @ "6.1.10" (was "6.1.0")...
I am not sure why my ng update command is not run. I wanted to test my migration.json schematic so I pointed my collection.json to point to ng-update/index so that when I run ng add @solarwinds/nav-menu-with-migration@1.0.0-nav-menu-with-migration.3 I can see if my ng-update code work and it does work as expected (Note: this was only to test purpose and I do not intend to use ng add to run migrations). Here is the output :
TREHMAN-MB:web-application-seed tanzeel.rehman$ ng add @solarwinds/nav-menu-with-migration@1.0.0-nav-menu-with-migration.3Installing packages for tooling via npm.
npm WARN @solarwinds/nav-menu@2.2.0 requires a peer of @solarwinds/nova-xui@6.3.0-alpha.10.1322 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/animations@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/cdk@6.3.3 but none is installed. You must install peerdependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/common@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/compiler@6.1.4 but none is installed. You must installpeer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/core@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/forms@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/http@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/platform-browser@6.1.4 but none is installed. You mustinstall peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/platform-browser-dynamic@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nova-xui@6.3.0-alpha.12.1825 requires a peer of @angular/router@6.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN tsickle@0.30.0 requires a peer of typescript@>=2.4.2 <2.9 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nav-menu-with-migration@1.0.0-nav-menu-with-migration.3 requires a peer of ngx-perfect-scrollbar@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @solarwinds/nav-menu-with-migration@1.0.0-nav-menu-with-migration.3 requires a peer of @solarwinds/nova-xui@6.3.0-alpha.10.1322 but none is installed. You must install peer dependencies yourself.
+ @solarwinds/nav-menu-with-migration@1.0.0-nav-menu-with-migration.3
updated 1 package and audited 40530 packages in 16.964s
found 10 vulnerabilities (3 low, 5 moderate, 2 high)
run `npm audit fix` to fix them, or `npm audit` for details
Installed packages for tooling via npm.
it's happening!
UPDATE package.json (4250 bytes)
Can someone help me with ng update here. Please, Thank you in advance!!
The text was updated successfully, but these errors were encountered:
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 angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.
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/nav-menu-with-migration@1.0.0-nav-menu-with-migration.3
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: