Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to angular 9.1 with TSLint 6.1 error "Cannot find migration 'tslint-version-6' in '@angular/cli'." #17308

Closed
hiepxanh opened this issue Mar 26, 2020 · 10 comments

Comments

@hiepxanh
Copy link

@hiepxanh hiepxanh commented Mar 26, 2020

馃悶 Bug report

Command (mark with an x)

  • update

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

ng update @angular/cli --migrate-only tslint-version-6
The installed local Angular CLI version is older than the latest stable version.
Installing a temporary version to perform the update.
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Using package manager: 'npm'
Collecting installed dependencies...
Found 66 dependencies.
Cannot find migration 'tslint-version-6' in '@angular/cli'.
image

馃敩 Minimal Reproduction

ng update @angular/cli --migrate-only tslint-version-6

馃敟 Exception or Error

it shoud be clear

馃實 Your Environment


Angular CLI: 9.0.6
Node: 12.16.1
OS: win32 x64

Angular: 9.0.6
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.6
@angular-devkit/build-angular     0.900.6
@angular-devkit/build-optimizer   0.900.6
@angular-devkit/build-webpack     0.900.6
@angular-devkit/core              7.3.9
@angular-devkit/schematics        7.3.9
@angular/cdk                      9.1.3
@angular/fire                     6.0.0-rc.1
@angular/flex-layout              9.0.0-beta.29
@angular/http                     8.0.0-beta.10
@angular/material                 9.1.3
@ngtools/webpack                  9.0.6
@schematics/angular               9.0.6
@schematics/update                0.900.6
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2

Anything else relevant?

@hiepxanh

This comment has been minimized.

Copy link
Author

@hiepxanh hiepxanh commented Mar 26, 2020

Solution: npm i @angular/cli@latest -g -s before update make error disappear
image

$ ng update @angular/cli --migrate-only tslint-version-6
Using package manager: 'npm'
Collecting installed dependencies...
Found 66 dependencies.
** Executing 'tslint-version-6' of package '@angular/cli' **

Update tslint to version 6.
UPDATE tslint.json (3162 bytes)
Migration completed.

@hiepxanh hiepxanh changed the title Upgrade to angular 9.1 error "Cannot find migration 'tslint-version-6' in '@angular/cli'." Upgrade to angular 9.1 with TSLint 6.1 error "Cannot find migration 'tslint-version-6' in '@angular/cli'." Mar 26, 2020
@AceVentura

This comment has been minimized.

Copy link

@AceVentura AceVentura commented Mar 26, 2020

@hiepxanh did not work for me
image

@mburger81

This comment has been minimized.

Copy link

@mburger81 mburger81 commented Mar 26, 2020

Same for me!

@clydin

This comment has been minimized.

Copy link
Member

@clydin clydin commented Mar 26, 2020

The migration is available in the Angular CLI starting with version 9.1.0. The project must be updated before the migration can be executed.

Please try executing the following within the project to update:
ng update @angular/cli @angular/core

For additional information regarding the release of Angular 9.1 please see: https://blog.angular.io/version-9-1-of-angular-now-available-typescript-3-8-faster-builds-and-more-eb292f989428

@hiepxanh

This comment has been minimized.

Copy link
Author

@hiepxanh hiepxanh commented Mar 27, 2020

@clydin should I close issue or not? I resoved mine but other didn't sir.

@mburger81

This comment has been minimized.

Copy link

@mburger81 mburger81 commented Mar 27, 2020

Yes I figured it out yesterday. Firstly we have to run the update and then the migration too.

@mburger81

This comment has been minimized.

Copy link

@mburger81 mburger81 commented Mar 27, 2020

For additional information regarding the release of Angular 9.1 please see: https://blog.angular.io/version-9-1-of-angular-now-available-typescript-3-8-faster-builds-and-more-eb292f989428

In my opinion this is not clear from reading the article. But it could also be it's a language problem of mine.
Also it is strange, it is talking first about the migration and then how to update. It would be better if first we have the distribution about how to do the update, and then what to do if you also would like to migrate to tslint6.1
thx

@alan-agius4

This comment has been minimized.

Copy link
Collaborator

@alan-agius4 alan-agius4 commented Mar 27, 2020

I pinged @StephenFluin to update the blog post to make it clearer.

@hiepxanh

This comment has been minimized.

Copy link
Author

@hiepxanh hiepxanh commented Mar 27, 2020

@alan-agius4 do you want me to close this issue or just wait the PR?

@alan-agius4

This comment has been minimized.

Copy link
Collaborator

@alan-agius4 alan-agius4 commented Mar 28, 2020

Closing as the blog post has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can鈥檛 perform that action at this time.