Closed philjones88 closed 4 years ago
Thank you for reporting this issue!
Please provide a repro so I can take a look.
I see you are on version 6 :) ideally this would work but there might be issues. It may be easier for you to go to 7.8.6
first via:
yarn add @nrwl/schematics@7.8.6 -D
yarn update --from 6.2.0 --to 7.8.6 --migrate-only
# Check things work
git commit -am "upgraded to Nx 7.8.6"
yarn update
git commit -am "upgraded to Nx 8.0.0"
@FrozenPandaz thank you for your reply.
I've tried what you suggested but I get a new error
Invalid migration version: "8-beta"
Here's the full log for the commands you suggest
➜ ui git:(angular7) yarn add @nrwl/schematics@7.8.6 -D
yarn add v1.15.2
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/core@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "rxjs@^6.3.3".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 5 new dependencies.
info Direct dependencies
└─ @nrwl/schematics@7.8.6
info All dependencies
├─ @nrwl/schematics@7.8.6
├─ ignore@5.0.4
├─ nice-try@1.0.5
├─ npm-run-all@4.1.5
└─ pidtree@0.3.0
✨ Done in 5.78s.
➜ ui git:(angular7) ✗ yarn update --from 6.2.0 --to 7.8.6 --migrate-only
yarn run v1.15.2
$ ng update @nrwl/schematics --from 6.2.0 --to 7.8.6 --migrate-only
Package "@ngrx/router-store" has an incompatible peer dependency to "@angular/common" (requires "^6.0.0" (extended), would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "8.0.0").
Package "@ngrx/router-store" has an incompatible peer dependency to "@angular/router" (requires "^6.0.0" (extended), would install "8.0.0").
Updating package.json with dependency @angular/compiler-cli @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/language-service @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency typescript @ "3.4.5" (was "2.9.2")...
Updating package.json with dependency @angular/animations @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/common @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/compiler @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/core @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/forms @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/platform-browser @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/router @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency rxjs @ "6.5.2" (was "6.2.2")...
Updating package.json with dependency zone.js @ "0.9.1" (was "0.8.26")...
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.1.4")...
Could not find ./karma.conf.js
It is recommended that your karma configuration sets autoWatch: true
Prettier has been updated to 1.15.1 which has support for formatting html!
Formatting of your code might change as you are working on each file.
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
Typescript has been set to compile with es2015 modules
With this update, we are changing the structure of the tsconfig files.
A tsconfig.json has been added to all project roots which is used by editors to provide intellisense.
The tsconfig.(app|lib|spec|e2e).json files now all extend off of the tsconfig.json in the project root.
To find out more, visit our wiki: https://github.com/nrwl/nx/wiki/Workspace-Organization#tsconfigs
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.1.4")...
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.1.4")...
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.1.4")...
Prettier has been updated to 1.16.4 which has a lot of small improvements
Formatting of your code might change as you are working on each file.
Prettier will now format *.less files you can disable this by adding '*.less' to your .prettierignore
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
CREATE .prettierignore (57 bytes)
CREATE apps/cm/tsconfig.json (100 bytes)
CREATE apps/outlook/tsconfig.json (113 bytes)
UPDATE package.json (3289 bytes)
UPDATE tsconfig.json (532 bytes)
UPDATE apps/cm/tsconfig.app.json (426 bytes)
UPDATE apps/cm/tsconfig.spec.json (339 bytes)
UPDATE apps/outlook/tsconfig.app.json (416 bytes)
UPDATE apps/outlook/tsconfig.spec.json (271 bytes)
UPDATE .vscode/extensions.json (115 bytes)
UPDATE angular.json (8750 bytes)
warning package.json: "dependencies" has dependency "@ngrx/store-devtools" with range "6.1.0" that collides with a dependency in "devDependencies" of the same name with version "7.2.0"
warning ui@3.0.0: "dependencies" has dependency "@ngrx/store-devtools" with range "6.1.0" that collides with a dependency in "devDependencies" of the same name with version "7.2.0"
warning karma > log4js > circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
warning " > @ngrx/effects@7.2.0" has incorrect peer dependency "@angular/core@^7.0.0".
warning " > @ngrx/router-store@7.2.0" has incorrect peer dependency "@angular/common@^7.0.0".
warning " > @ngrx/router-store@7.2.0" has incorrect peer dependency "@angular/core@^7.0.0".
warning " > @ngrx/router-store@7.2.0" has incorrect peer dependency "@angular/router@^7.0.0".
warning " > @ngrx/store@7.2.0" has incorrect peer dependency "@angular/core@^7.0.0".
warning " > @ngrx/store-devtools@6.1.0" has incorrect peer dependency "@ngrx/store@6.1.0".
warning " > @nrwl/nx@6.2.0" has incorrect peer dependency "jasmine-marbles@0.3.1".
warning " > angular2-toaster@6.1.0" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > angular2-toaster@6.1.0" has incorrect peer dependency "@angular/compiler@^6.0.0".
warning " > angular2-toaster@6.1.0" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/core@^7.2.0".
warning " > ngrx-store-localstorage@5.0.1" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "@angular-devkit/build-angular > @ngtools/webpack@7.3.9" has incorrect peer dependency "@angular/compiler-cli@>=5.0.0 <8.0.0 || ^7.0.0-beta.0".
warning " > @angular/compiler-cli@8.0.0" has incorrect peer dependency "typescript@>=3.4 <3.5".
warning " > codelyzer@4.5.0" has incorrect peer dependency "@angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0".
warning package.json: "dependencies" has dependency "@ngrx/store-devtools" with range "6.1.0" that collides with a dependency in "devDependencies" of the same name with version "7.2.0"
warning ui@3.0.0: "dependencies" has dependency "@ngrx/store-devtools" with range "6.1.0" that collides with a dependency in "devDependencies" of the same name with version "7.2.0"
Invalid migration version: "8-beta"
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I was able to go from 6.2.0 to 6.4.0 using altered versions of your commands.
Then was able to go from 6.4.0 to 6.4.1 using altered versions of your commands.
Then going from 6.4.0 to 7.8.6 I get different errors again, I'll look at trying to correct them
➜ ui git:(angular7) ✗ yarn update --from 6.4.0 --to 7.8.6 --migrate-only
yarn run v1.15.2
$ ng update @nrwl/schematics --from 6.4.0 --to 7.8.6 --migrate-only
Package "@ngrx/router-store" has an incompatible peer dependency to "@angular/common" (requires "^6.0.0" (extended), would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "8.0.0").
Package "@ngrx/router-store" has an incompatible peer dependency to "@angular/router" (requires "^6.0.0" (extended), would install "8.0.0").
Updating package.json with dependency @angular/compiler-cli @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/language-service @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency typescript @ "3.4.5" (was "2.9.2")...
Updating package.json with dependency @angular/animations @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/common @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/compiler @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/core @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/forms @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/platform-browser @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency @angular/router @ "8.0.0" (was "6.1.3")...
Updating package.json with dependency rxjs @ "6.5.2" (was "6.2.2")...
Updating package.json with dependency zone.js @ "0.9.1" (was "0.8.26")...
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.2.4")...
Could not find ./karma.conf.js
It is recommended that your karma configuration sets autoWatch: true
Prettier has been updated to 1.15.1 which has support for formatting html!
Formatting of your code might change as you are working on each file.
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
Typescript has been set to compile with es2015 modules
With this update, we are changing the structure of the tsconfig files.
A tsconfig.json has been added to all project roots which is used by editors to provide intellisense.
The tsconfig.(app|lib|spec|e2e).json files now all extend off of the tsconfig.json in the project root.
To find out more, visit our wiki: https://github.com/nrwl/nx/wiki/Workspace-Organization#tsconfigs
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.2.4")...
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.2.4")...
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Updating package.json with dependency @angular/cli @ "8.0.1" (was "6.2.4")...
Prettier has been updated to 1.16.4 which has a lot of small improvements
Formatting of your code might change as you are working on each file.
Prettier will now format *.less files you can disable this by adding '*.less' to your .prettierignore
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
CREATE .prettierignore (57 bytes)
CREATE apps/cm/tsconfig.json (100 bytes)
CREATE apps/outlook/tsconfig.json (113 bytes)
UPDATE package.json (3289 bytes)
UPDATE tsconfig.json (532 bytes)
UPDATE apps/cm/tsconfig.app.json (426 bytes)
UPDATE apps/cm/tsconfig.spec.json (339 bytes)
UPDATE apps/outlook/tsconfig.app.json (416 bytes)
UPDATE apps/outlook/tsconfig.spec.json (271 bytes)
UPDATE .vscode/extensions.json (115 bytes)
UPDATE angular.json (8750 bytes)
warning package.json: "dependencies" has dependency "@ngrx/store-devtools" with range "6.1.0" that collides with a dependency in "devDependencies" of the same name with version "7.2.0"
warning ui@3.0.0: "dependencies" has dependency "@ngrx/store-devtools" with range "6.1.0" that collides with a dependency in "devDependencies" of the same name with version "7.2.0"
warning " > @ngrx/effects@7.2.0" has incorrect peer dependency "@angular/core@^7.0.0".
warning " > @ngrx/router-store@7.2.0" has incorrect peer dependency "@angular/common@^7.0.0".
warning " > @ngrx/router-store@7.2.0" has incorrect peer dependency "@angular/core@^7.0.0".
warning " > @ngrx/router-store@7.2.0" has incorrect peer dependency "@angular/router@^7.0.0".
warning " > @ngrx/store@7.2.0" has incorrect peer dependency "@angular/core@^7.0.0".
warning " > @ngrx/store-devtools@6.1.0" has incorrect peer dependency "@ngrx/store@6.1.0".
warning " > @nrwl/nx@6.2.0" has incorrect peer dependency "jasmine-marbles@0.3.1".
warning " > angular2-toaster@6.1.0" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > angular2-toaster@6.1.0" has incorrect peer dependency "@angular/compiler@^6.0.0".
warning " > angular2-toaster@6.1.0" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/core@^7.2.0".
warning " > ngrx-store-localstorage@5.0.1" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "@angular-devkit/build-angular > @ngtools/webpack@7.3.9" has incorrect peer dependency "@angular/compiler-cli@>=5.0.0 <8.0.0 || ^7.0.0-beta.0".
warning " > @angular/compiler-cli@8.0.0" has incorrect peer dependency "typescript@>=3.4 <3.5".
warning " > codelyzer@4.5.0" has incorrect peer dependency "@angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0".
------ Static Query Migration ------
With Angular version 8, developers need to
explicitly specify the timing of ViewChild and
ContentChild queries. Read more about this here:
https://v8.angular.io/guide/static-query-migration
TypeScript project "apps/cm/tsconfig.app.json" has syntactical errors which could cause an incomplete migration. Please fix the following failures and rerun the migration:
node_modules/typescript/lib/lib.es2017.d.ts(21,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(22,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(23,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(24,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(25,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(26,1): error TS1084: Invalid 'reference' directive syntax.
Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"
TypeScript project "apps/outlook/tsconfig.app.json" has syntactical errors which could cause an incomplete migration. Please fix the following failures and rerun the migration:
node_modules/typescript/lib/lib.es2017.d.ts(21,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(22,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(23,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(24,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(25,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(26,1): error TS1084: Invalid 'reference' directive syntax.
Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"
The template migration strategy uses the Angular compiler internally and therefore projects that no longer build successfully after the update cannot use the template migration strategy. Please ensure there are no AOT compilation errors.
Could not setup migration strategy for "apps/cm/tsconfig.app.json". The following error has been reported:
Error: The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 2.9.2 was found instead.
Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"
The template migration strategy uses the Angular compiler internally and therefore projects that no longer build successfully after the update cannot use the template migration strategy. Please ensure there are no AOT compilation errors.
Could not setup migration strategy for "apps/outlook/tsconfig.app.json". The following error has been reported:
Error: The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 2.9.2 was found instead.
Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"
TypeScript project "apps/cm/tsconfig.spec.json" has syntactical errors which could cause an incomplete migration. Please fix the following failures and rerun the migration:
node_modules/typescript/lib/lib.es2017.d.ts(21,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(22,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(23,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(24,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(25,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(26,1): error TS1084: Invalid 'reference' directive syntax.
Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"
TypeScript project "apps/outlook/tsconfig.spec.json" has syntactical errors which could cause an incomplete migration. Please fix the following failures and rerun the migration:
node_modules/typescript/lib/lib.es2017.d.ts(21,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(22,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(23,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(24,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(25,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/typescript/lib/lib.es2017.d.ts(26,1): error TS1084: Invalid 'reference' directive syntax.
Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"
------------------------------------------------
EISDIR: illegal operation on a directory, read
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
We have another nrwl nx project that is newer, 7.7.0. doing yarn update
also failed with:
➜ yarn update
yarn run v1.15.2
$ ng update @nrwl/schematics
Updating package.json with dependency @nrwl/schematics @ "8.0.0" (was "7.7.0")...
Updating package.json with dependency rxjs @ "6.5.2" (was "6.4.0")...
Updating package.json with dependency @nrwl/nx @ "7.8.6" (was "7.7.0")...
UPDATE package.json (3598 bytes)
warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
warning " > ngrx-store-localstorage@5.1.0" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "workspace-aggregator-e60f1683-508c-4aca-9ade-5980492bb13c > @vqcomms/cli-installer > blessed-contrib > marked-terminal@1.7.0" has incorrect peer dependency "marked@^0.3.3".
Prettier has been updated to 1.16.4 which has a lot of small improvements
Formatting of your code might change as you are working on each file.
Prettier will now format *.less files you can disable this by adding '*.less' to your .prettierignore
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
Nx has been repackaged. We are installing and migrating your dependencies to the ones necessary.
If you have workspace schematics, we tried to migrate your imports from "@nrwl/schematics" to "@nrwl/workspace" but your externalSchematics may be broken.
Read this guide to see where to find familiar features: https://nx.dev/guides/nx7-to-nx8
This migration may take a few minutes.
Migrating Angular to v8.0.0
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.3", would install "3.4.5").
Updating package.json with dependency @angular-devkit/build-angular @ "0.800.1" (was "0.13.5")...
Updating package.json with dependency @angular/cli @ "8.0.1" (was "7.3.5")...
Updating package.json with dependency typescript @ "3.4.5" (was "3.2.4")...
Updating package.json with dependency @angular/compiler-cli @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/language-service @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency typescript @ "3.4.5" (was "3.2.4")...
Updating package.json with dependency @angular/animations @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/common @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/compiler @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/core @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/forms @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/platform-browser @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency @angular/router @ "8.0.0" (was "7.2.9")...
Updating package.json with dependency zone.js @ "0.9.1" (was "0.8.29")...
Removing @nrwl/schematics as a dependency
Removing @nrwl/builders as a dependency
Removing @nrwl/nx as a dependency
Cannot convert undefined or null to object
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I fixed the way the migrations work so now you should be able to do ng update @nrwl/schematics --force
from a Nx 6.x workspace.
This will update you all the way up to the latest version! :tada:
Also, I recognize that some people might prefer to move from 6 to 7. This process is more complicated at the moment. I will work on porting the fix to a 7.8.7
version. I hope to finish this week or next week :sweat_smile:. In theory (I haven't tested it yet), you should be able to do something like ng update @nrwl/workspace@7.8.7
In the meantime, for the daring, here is a process that might work. I know the following process is way too complicated so I would recommend waiting for the nicer solution.
npm i @angular/cli@latest @nrwl/schematics@latest -D # Yes, the latest versions...
./node_modules/.bin/ng update @nrwl/schematics --from 6.x.y --to 7.8.6 --migrate-only # --from whatever version you are currently on... --to any version of Nx. I'd recommend `7.8.6` :woman_shrugging:
# The above migration should work
npm i @nrwl/schematics@7.8.6 -D # set the version of `@nrwl/schematics` back to whatever version you migrated to.
Still hitting the same issue?
➜ ui git:(angular7) rm -rf node_modules && yarn && ng update @nrwl/schematics --force
yarn install v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/core@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "rxjs@^6.3.3".
[4/4] 🔨 Building fresh packages...
✨ Done in 10.56s.
Updating package.json with dependency @nrwl/schematics @ "8.1.0" (was "6.4.1")...
UPDATE package.json (3213 bytes)
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "@angular/core@^7.2.0".
warning " > ng2-charts@2.2.3" has incorrect peer dependency "rxjs@^6.3.3".
warning "@nrwl/schematics > @nrwl/angular > jasmine-marbles@0.5.0" has incorrect peer dependency "rxjs@^6.4.0".
Cannot find module 'inquirer'
Hey, I'm a co-worker of @philjones88 , I hit this too but also had a require stack printed out incase that helps
Cannot find module 'inquirer'
Require stack:
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@nrwl/workspace/src/command-line/workspace-schematic.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@nrwl/workspace/src/command-line/nx-commands.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@nrwl/workspace/index.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@nrwl/schematics/migrations/update-6-0-0/update-6-0-0.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@angular-devkit/schematics/tools/workflow/node-workflow.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@angular-devkit/schematics/tools/index.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@angular/cli/commands/add.js
- /home/james/git/github.com/VQComms/VQ/src/ui/node_modules/@angular/cli/lib/cli/index.js
- /home/james/.config/yarn/global/node_modules/@angular/cli/lib/init.js
- /home/james/.config/yarn/global/node_modules/@angular/cli/bin/ng
@philjones88 @Yantrio
Sorry, I forgot to mention you still need a compatible version of @angular/cli
.
npm i @angular/cli^8.0.0 -D
./node_modules/.bin/ng update @nrwl/schematics --allow-dirty --force
Please let me know if this works.
@FrozenPandaz we managed to muddle through an nrwl 6 to 8 update but it errors on our other project going from 7.7.0 to latest
➜ yarn update
yarn run v1.16.0
$ ng update @nrwl/schematics
Updating package.json with dependency @nrwl/schematics @ "8.1.0" (was "7.7.0")...
UPDATE package.json (3687 bytes)
warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
warning " > ngrx-store-localstorage@5.1.0" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "workspace-aggregator-f70661b0-f18c-436b-bee0-e745ba0a9c24 > @vqcomms/cli-installer > blessed-contrib > marked-terminal@1.7.0" has incorrect peer dependency "marked@^0.3.3".
Prettier has been updated to 1.16.4 which has a lot of small improvements
Formatting of your code might change as you are working on each file.
Prettier will now format *.less files you can disable this by adding '*.less' to your .prettierignore
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
Nx has been repackaged. We are installing and migrating your dependencies to the ones necessary.
If you have workspace schematics, we tried to migrate your imports from "@nrwl/schematics" to "@nrwl/workspace" but your externalSchematics may be broken.
Read this guide to see where to find familiar features: https://nx.dev/guides/nx7-to-nx8
This migration may take a few minutes.
Removing @nrwl/schematics as a dependency
Removing @nrwl/builders as a dependency
Removing @nrwl/nx as a dependency
Cannot convert undefined or null to object
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
log after trying again with the latest 7.8.7 and 8.1.2 releases
[10:49:02] phil:vq-node-packages git:(master*) $ yarn add -WD @angular/cli
yarn add v1.17.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
warning " > ngrx-store-localstorage@5.1.0" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "workspace-aggregator-36340079-5c38-4b51-af6d-a8d029d33c29 > @vqcomms/resource-pool.server > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
warning "workspace-aggregator-36340079-5c38-4b51-af6d-a8d029d33c29 > @vqcomms/cli-installer > blessed-contrib > marked-terminal@1.7.0" has incorrect peer dependency "marked@^0.3.3".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 5 new dependencies.
info Direct dependencies
└─ @angular/cli@8.0.3
info All dependencies
├─ @angular/cli@8.0.3
├─ @schematics/angular@8.0.3
├─ @schematics/update@0.800.3
├─ open@6.2.0
└─ universal-analytics@0.4.20
✨ Done in 14.53s.
[10:51:06] phil:vq-node-packages git:(master*) $ yarn add -WD @nrwl/schematics@7.8.7
yarn add v1.17.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
warning " > ngrx-store-localstorage@5.1.0" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "workspace-aggregator-6d806355-ee81-45f2-be3f-74f6eacf87f9 > @vqcomms/resource-pool.server > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
warning "workspace-aggregator-6d806355-ee81-45f2-be3f-74f6eacf87f9 > @vqcomms/cli-installer > blessed-contrib > marked-terminal@1.7.0" has incorrect peer dependency "marked@^0.3.3".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @nrwl/schematics@7.8.7
info All dependencies
└─ @nrwl/schematics@7.8.7
✨ Done in 9.06s.
[10:51:57] phil:vq-node-packages git:(master*) $ ./node_modules/.bin/ng update @nrwl/schematics --from 7.7.0 --to 7.8.7 --migrate-only --allow-dirty
Repository is not clean. Update changes will be mixed with pre-existing changes.
Using package manager: 'yarn'
Collecting installed dependencies...
Found 71 dependencies.
** Executing migrations for package '@nrwl/schematics' **
Prettier has been updated to 1.16.4 which has a lot of small improvements
Formatting of your code might change as you are working on each file.
Prettier will now format *.less files you can disable this by adding '*.less' to your .prettierignore
Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace.
You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.
UPDATE package.json (3718 bytes)
[10:52:13] phil:vq-node-packages git:(master*) $ ./node_modules/.bin/ng update @nrwl/schematics --allow-dirty --force
Repository is not clean. Update changes will be mixed with pre-existing changes.
Using package manager: 'yarn'
Collecting installed dependencies...
Found 71 dependencies.
Fetching dependency metadata from registry...
Updating package.json with dependency @nrwl/schematics @ "8.1.2" (was "7.8.7")...
UPDATE package.json (3717 bytes)
warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
warning " > ngrx-store-localstorage@5.1.0" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0".
warning "workspace-aggregator-22a92151-6d13-4fd4-a775-f774bccf5d24 > @vqcomms/resource-pool.server > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
warning "workspace-aggregator-22a92151-6d13-4fd4-a775-f774bccf5d24 > @vqcomms/cli-installer > blessed-contrib > marked-terminal@1.7.0" has incorrect peer dependency "marked@^0.3.3".
** Executing migrations for package '@nrwl/schematics' **
Nx has been repackaged. We are installing and migrating your dependencies to the ones necessary.
If you have workspace schematics, we tried to migrate your imports from "@nrwl/schematics" to "@nrwl/workspace" but your externalSchematics may be broken.
Read this guide to see where to find familiar features: https://nx.dev/guides/nx7-to-nx8
This migration may take a few minutes.
Removing @nrwl/schematics as a dependency
Removing @nrwl/builders as a dependency
Removing @nrwl/nx as a dependency
Cannot convert undefined or null to object
[10:53:30] phil:vq-node-packages git:(master*) $ node --version
v10.16.0
[10:54:31] phil:vq-node-packages git:(master*) $ npm --version
6.9.0
[10:54:35] phil:vq-node-packages git:(master*) $ yarn --version
1.17.0
Same problem here but with npm and update from 7.8.5 to 8.1.2:
Cannot find module 'inquirer'
Why does it say: Updating @angular/core to 8.0.0
when @angular/core was already at version 8.0.1
?
Why does running ng update
after ng update @nrwl/schematics
still report @nrwl/angular 8.0.0 -> 8.1.2
when it actually had been updated already to 8.1.2?
$ ng update
Using package manager: 'npm'
Collecting installed dependencies...
Found 39 dependencies.
We analyzed your package.json, there are some packages to update:
Name Version Command to update
--------------------------------------------------------------------------------
@nrwl/schematics 7.8.5 -> 8.1.2 ng update @nrwl/schematics
$ ng update @nrwl/schematics
Using package manager: 'npm'
Collecting installed dependencies...
Found 39 dependencies.
Fetching dependency metadata from registry...
Updating package.json with dependency @nrwl/schematics @ "8.1.2" (was "7.8.5")...
UPDATE package.json (2583 bytes)
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 27 packages from 10 contributors, updated 1 package and audited 927302 packages in 18.342s
found 3 vulnerabilities (1 low, 1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
** Executing migrations for package '@nrwl/schematics' **
Nx has been repackaged. We are installing and migrating your dependencies to the ones necessary.
If you have workspace schematics, we tried to migrate your imports from "@nrwl/schematics" to "@nrwl/workspace" but your externalSchematics may be broken.
Read this guide to see where to find familiar features: https://nx.dev/guides/nx7-to-nx8
This migration may take a few minutes.
Removing @nrwl/schematics as a dependency
Removing @nrwl/builders as a dependency
Removing @nrwl/nx as a dependency
Adding @nrwl/workspace as a dependency
Adding @nrwl/angular as a dependency
Adding @nrwl/jest as a dependency
Adding @nrwl/cypress as a dependency
Default collection is now set to @nrwl/angular
UPDATE package.json (2638 bytes)
UPDATE angular.json (5671 bytes)
UPDATE jest.config.js (275 bytes)
UPDATE tslint.json (2183 bytes)
UPDATE apps/wcsmodule/tsconfig.app.json (193 bytes)
UPDATE apps/wcsmodule/tsconfig.spec.json (233 bytes)
UPDATE apps/wcsmodule-e2e/tsconfig.e2e.json (152 bytes)
UPDATE libs/models/tsconfig.lib.json (444 bytes)
UPDATE libs/models/tsconfig.spec.json (199 bytes)
UPDATE libs/services/tsconfig.lib.json (444 bytes)
UPDATE libs/services/tsconfig.spec.json (199 bytes)
UPDATE tools/tsconfig.tools.json (212 bytes)
UPDATE tsconfig.json (628 bytes)
npm WARN @ngtools/webpack@8.0.3 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN circular-dependency-plugin@5.0.2 requires a peer of webpack@>=4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN file-loader@3.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN istanbul-instrumenter-loader@3.0.1 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN less-loader@4.1.0 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mini-css-extract-plugin@0.6.0 requires a peer of webpack@^4.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN raw-loader@1.0.0 requires a peer of webpack@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@7.1.0 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN speed-measure-webpack-plugin@1.3.1 requires a peer of webpack@^1 || ^2 || ^3 || ^4 but none is installed. You must install peer dependencies yourself.
npm WARN stats-webpack-plugin@0.7.0 requires a peer of webpack@>=1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.6.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.1.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.4.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-subresource-integrity@1.1.0-rc.6 requires a peer of webpack@^1.12.11 || ~2 || ~3 || ~4 but none is installed. You must install peer dependencies yourself.
npm WARN worker-plugin@3.1.0 requires a peer of webpack@>= 4 but none is installed. You must install peer dependencies yourself.
npm WARN @nrwl/angular@8.0.0 requires a peer of jasmine-marbles@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
removed 195 packages, updated 14 packages and audited 870366 packages in 15.597s
found 3 vulnerabilities (1 low, 1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Updating @angular/core to 8.0.0
Repository is not clean. Update changes will be mixed with pre-existing changes.
Using package manager: 'npm'
Collecting installed dependencies...
Found 41 dependencies.
Fetching dependency metadata from registry...
UPDATE package.json (2637 bytes)
npm WARN @ngtools/webpack@8.0.3 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @nrwl/angular@8.0.0 requires a peer of jasmine-marbles@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN circular-dependency-plugin@5.0.2 requires a peer of webpack@>=4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN file-loader@3.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN istanbul-instrumenter-loader@3.0.1 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN less-loader@4.1.0 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mini-css-extract-plugin@0.6.0 requires a peer of webpack@^4.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN raw-loader@1.0.0 requires a peer of webpack@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@7.1.0 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN speed-measure-webpack-plugin@1.3.1 requires a peer of webpack@^1 || ^2 || ^3 || ^4 but none is installed. You must install peer dependencies yourself.
npm WARN stats-webpack-plugin@0.7.0 requires a peer of webpack@>=1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.6.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.1.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.4.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-subresource-integrity@1.1.0-rc.6 requires a peer of webpack@^1.12.11 || ~2 || ~3 || ~4 but none is installed. You must install peer dependencies yourself.
npm WARN worker-plugin@3.1.0 requires a peer of webpack@>= 4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 870366 packages in 9.7s
found 3 vulnerabilities (1 low, 1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Updating @angular/cli to 8.0.1
Repository is not clean. Update changes will be mixed with pre-existing changes.
Using package manager: 'npm'
Collecting installed dependencies...
Found 41 dependencies.
Fetching dependency metadata from registry...
UPDATE package.json (2637 bytes)
npm WARN @ngtools/webpack@8.0.3 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @nrwl/angular@8.0.0 requires a peer of jasmine-marbles@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN circular-dependency-plugin@5.0.2 requires a peer of webpack@>=4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN file-loader@3.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN istanbul-instrumenter-loader@3.0.1 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN less-loader@4.1.0 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mini-css-extract-plugin@0.6.0 requires a peer of webpack@^4.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN raw-loader@1.0.0 requires a peer of webpack@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@7.1.0 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN speed-measure-webpack-plugin@1.3.1 requires a peer of webpack@^1 || ^2 || ^3 || ^4 but none is installed. You must install peer dependencies yourself.
npm WARN stats-webpack-plugin@0.7.0 requires a peer of webpack@>=1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.6.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.1.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.4.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-subresource-integrity@1.1.0-rc.6 requires a peer of webpack@^1.12.11 || ~2 || ~3 || ~4 but none is installed. You must install peer dependencies yourself.
npm WARN worker-plugin@3.1.0 requires a peer of webpack@>= 4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 870366 packages in 9.42s
found 3 vulnerabilities (1 low, 1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
$ ng update
Using package manager: 'npm'
Collecting installed dependencies...
Found 41 dependencies.
We analyzed your package.json, there are some packages to update:
Name Version Command to update
--------------------------------------------------------------------------------
@nrwl/angular 8.0.0 -> 8.1.2 ng update @nrwl/angular
@nrwl/angular 8.0.0 -> 8.1.2 ng update @nrwl/angular
@nrwl/cypress 8.0.0 -> 8.1.2 ng update @nrwl/cypress
@nrwl/jest 8.0.0 -> 8.1.2 ng update @nrwl/jest
$ ng update @nrwl/angular
Using package manager: 'npm'
Collecting installed dependencies...
Found 41 dependencies.
Fetching dependency metadata from registry...
Updating package.json with dependency @nrwl/angular @ "8.1.2" (was "8.0.0")...
Updating package.json with dependency @nrwl/jest @ "8.1.2" (was "8.0.0")...
Updating package.json with dependency @nrwl/workspace @ "8.1.2" (was "8.0.0")...
Updating package.json with dependency @nrwl/cypress @ "8.1.2" (was "8.0.0")...
UPDATE package.json (2637 bytes)
npm WARN @ngtools/webpack@8.0.3 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN circular-dependency-plugin@5.0.2 requires a peer of webpack@>=4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN file-loader@3.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN istanbul-instrumenter-loader@3.0.1 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN less-loader@4.1.0 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mini-css-extract-plugin@0.6.0 requires a peer of webpack@^4.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN raw-loader@1.0.0 requires a peer of webpack@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@7.1.0 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN speed-measure-webpack-plugin@1.3.1 requires a peer of webpack@^1 || ^2 || ^3 || ^4 but none is installed. You must install peer dependencies yourself.
npm WARN stats-webpack-plugin@0.7.0 requires a peer of webpack@>=1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.6.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.1.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.4.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-subresource-integrity@1.1.0-rc.6 requires a peer of webpack@^1.12.11 || ~2 || ~3 || ~4 but none is installed. You must install peer dependencies yourself.
npm WARN worker-plugin@3.1.0 requires a peer of webpack@>= 4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 5 packages from 1 contributor, removed 15 packages, updated 4 packages, moved 4 packages and audited 870368 packages in 13.221s
found 3 vulnerabilities (1 low, 1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Cannot find module 'inquirer'
$ ng update
Using package manager: 'npm'
Collecting installed dependencies...
Found 41 dependencies.
We analyzed your package.json and everything seems to be in order. Good work!
We wrote a guide to walk through the upgrade process: https://nx.dev/angular/guides/nx7-to-nx8 Unfortunately going from 7 to 8 is a bit trickier as it requires running two commands.
We also made a lot of fixes in the migration itself. I'm going to close this issue.
If the problem persists, please reopen and we will take a look
Thank you!
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Expected Behavior
To update to latest
Current Behavior
Fails
Failure Information (for bugs)
package.json
nx.json
angular.json
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
yarn update
Context
Please provide any relevant information about your setup:
see package.json
8.0.0
angular.json
configurationsee above
see above
see above
yarn update
A minimal reproduce scenario using allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
Failure Logs
Please include any relevant log snippets or files here.
Other
Any other relevant information that will help us help you.