Closed xmlking closed 5 years ago
This usually occurs when an older version of @angular/cli
is used.
I'm not able to install dependencies in your repo for some reason.
Can you make sure you use the local @angular/cli
by using yarn update
?
if you clone the repo, and running yarn
in root, should install dependencies.
I am using latest @angular/cli
also verified i am using latest versions with yarn upgrade-interactive --latest
Angular CLI: 8.0.1
Node: 12.3.1
OS: darwin x64
Angular: 8.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router, service-worker
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.800.1
@angular-devkit/build-ng-packagr 0.800.1
@angular-devkit/build-optimizer 0.800.1
@angular-devkit/build-webpack 0.800.1
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cli 8.0.1
@angular/flex-layout 8.0.0-beta.26
@angular/pwa 0.800.1
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.0.1
@schematics/angular 8.0.1
@schematics/update 0.800.1
ng-packagr 5.2.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
I get the same error.
I upgraded from @nrwl/nx 7.8.6 with yarn update
to @nrwl/angular 8.0.0 without problems.
When I entered yarn update again, ng update @nrwl/workspace was performed, that resulted in the same error message.
Version Info:
yarn ng --version
$ ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 8.0.1
Node: 10.15.3
OS: linux x64
Angular: 8.0.0
... animations, common, compiler, compiler-cli, core, elements
... forms, language-service, platform-browser
... platform-browser-dynamic, router, upgrade
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.800.2
@angular-devkit/build-optimizer 0.800.2
@angular-devkit/build-webpack 0.800.2
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cli 8.0.1
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.0.2
@schematics/angular 8.0.1
@schematics/update 0.800.1
ng-packagr 5.2.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
Update: I just noticed, that the following error was displayed while updating from nx 7.8.6 to 8.0.0:
Package not installed: "--allow-dirty". Skipping.
Might this be related to the problem?
Hi getting a similar error when upgrading to nx v8
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 parse tslint.json: Unexpected token / in JSON at position 704
I'm seeing the same error (Cannot find module '../run-schematic/executor
) when trying to yarn update
from 8.0.1
-> 8.1.0
.
@xmlking is using Mac OS and my report was from Linux, so I thought it might be a problem that does not occur on Windows. Yesterday, I gave the update a try on Windows. The same error occurs there as well.
I am having a similar problem. cannot find ./render3/view/t2_ap and './render3/view/t2_binder
On Windows 10 (gitbash CLI), ng 7 (latest) to 8:
USER@MACHINE MINGW64 ~/Projects/vendor/project-name (master)
$ ng update @angular/cli @angular/core
Your global Angular CLI version (8.0.2) is greater than your local
version (7.3.9). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Updating package.json with dependency @angular/language-service @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/cli @ "8.0.2" (was "7.3.9")...
Updating package.json with dependency @angular/compiler-cli @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular-devkit/build-angular @ "0.800.2" (was "0.10.7")...
Updating package.json with dependency @angular/animations @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/core @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/common @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/compiler @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/forms @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/platform-browser @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/platform-server @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/service-worker @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency @angular/router @ "8.0.0" (was "7.2.15")...
Updating package.json with dependency zone.js @ "0.9.1" (was "0.8.29")...
Updating package.json with dependency typescript @ "3.4.5" (was "3.1.6")...
UPDATE package.json (4263 bytes)
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning @zxing/library > text-encoding@0.7.0: no longer maintained
warning @compodoc/compodoc > live-server > opn@6.0.0: The package has been renamed to `open`
warning @compodoc/compodoc > ts-simple-ast@12.4.0: NOTICE: ts-simple-ast has been renamed to ts-morph and version reset to 1.0.0. Switch at your leisure...
warning karma > log4js > circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
warning sass-lint > eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
warning " > @angular/http@7.2.15" has incorrect peer dependency "@angular/core@7.2.15".
warning " > @angular/http@7.2.15" has incorrect peer dependency "@angular/platform-browser@7.2.15".
warning " > @havan/activity-indicator-overlay@0.0.1" has incorrect peer dependency "@angular/common@^7.1.0".
warning " > @havan/activity-indicator-overlay@0.0.1" has incorrect peer dependency "@angular/core@^7.1.0".
warning " > @nguniversal/common@7.1.1" has incorrect peer dependency "@angular/common@^7.1.4".
warning " > @nguniversal/common@7.1.1" has incorrect peer dependency "@angular/core@^7.1.4".
warning " > @nguniversal/module-map-ngfactory-loader@7.1.1" has incorrect peer dependency "@angular/common@^7.1.4".
warning " > @nguniversal/module-map-ngfactory-loader@7.1.1" has incorrect peer dependency "@angular/core@^7.1.4".
warning " > @nguniversal/module-map-ngfactory-loader@7.1.1" has incorrect peer dependency "@angular/platform-server@^7.1.4".
warning " > @ngxs/devtools-plugin@3.4.3" has incorrect peer dependency "@angular/core@>=5.0.0 <8.0.0".
warning " > @ngxs/logger-plugin@3.4.3" has incorrect peer dependency "@angular/core@>=5.0.0 <8.0.0".
warning " > @ngxs/storage-plugin@3.4.3" has incorrect peer dependency "@angular/core@>=5.0.0 <8.0.0".
warning " > @ngxs/store@3.4.3" has incorrect peer dependency "@angular/core@>=5.0.0 <8.0.0".
warning " > @zxing/ngx-scanner@1.7.1" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > @zxing/ngx-scanner@1.7.1" has incorrect peer dependency "@angular/core@^7.2.0".
warning " > @nguniversal/express-engine@7.1.1" has incorrect peer dependency "@angular/common@^7.1.4".
warning " > @nguniversal/express-engine@7.1.1" has incorrect peer dependency "@angular/core@^7.1.4".
warning " > @nguniversal/express-engine@7.1.1" has incorrect peer dependency "@angular/platform-server@^7.1.4".
Cannot find module '../run-schematic/executor'
I was able to accomplish the upgrade trought the following steps:
node_modules
and any yarn file.package-lock.json
.npm i && npm update
.npm run ng update @angular/cli @angular/core
so I could use the local Angular CLI, using global is a big mistake as it won't update your code to auto-fix the braking changes.I tested the upgrade procedure that @odahcam listed above and this worked for me as well. Thanks @odahcam !
Works the same here as @odahcam .. shouldnt this be closed?
Works now. we can close this issue.
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.
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Expected Behavior
ng update @nrwl/angular
should workCurrent Behavior
error:
Cannot find module '../run-schematic/executor
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup:
angular.json
configurationA 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
Other
https://github.com/xmlking/ngx-starter-kit