Closed micobarac closed 6 years ago
Same error here. My versions:
Angular CLI: 6.0.3
Node: 8.11.2
OS: win32 x64
Angular: 6.0.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.3
@angular-devkit/build-angular 0.6.3
@angular-devkit/build-optimizer 0.6.3
@angular-devkit/core 0.6.3
@angular-devkit/schematics 0.6.3
@angular/cli 6.0.3
@ngtools/webpack 6.0.3
@schematics/angular 0.6.3
@schematics/update 0.6.3
rxjs 6.1.0
typescript 2.7.2
webpack 4.8.3
I've also tried with node version 10.1 and 10.2 with the same result
I managed to convert Angular 5.2 project to Angular 6 project following these steps:
Update Angular Cli (important for updating angular-cli.json
to angular.json
):
yarn install @anguar/cli@6.0.0
ng update @angular/cli
ng update
fails with other @angular/*
dependencies, due to obvious bugs in **Angular Cli 6.***
*Update `@angular/` and other dependencies manually**:
yarn global add npm-check-updates
ncu -u
yarn install
If any dependency inside package.json
is not detected by ncu
for update, update it manually.
After that, proceed with Angular Update Guide.
The above did not work for me, all packages updated to 6.0.3, but still same error
Angular CLI: 6.0.3
Node: 8.11.1
OS: win32 x64
Angular: 6.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.3
@angular-devkit/core 0.6.3
@angular-devkit/schematics 0.6.3
@schematics/angular 0.6.3
@schematics/update 0.6.3
rxjs 6.2.0
typescript 2.8.3
ng update @angular/cli
no elements in sequence
That's the problem, ng update @angular/cli
won't work, if your current CLI version is higher that 6.0.0
.
Only 6.0.0
can perform ng update @angular/cli
successfully. Versions 6.0.1
, 6.0.2
and latest 6.0.3
won't work.
Is npm installed on the system?
@clydin not in my case, but I've the option
"cli": {
"packageManager": "yarn"
},
in the angular.json
file
I can try to install it and report back
@clydin I've finally come around at trying. Installing npm does remove the error so it seem connected to that. Removed npm and the error came back
Maybe a better error message is needed.
This should be resolved with 6.0.7. Can you give it a try?
I've tried it and seems that version 6.0.7 does indeed fix the problem. Update now works without npm installed.
Thanks for fixing it!
My configuration
Angular CLI: 6.0.7
Node: 8.11.2
OS: win32 x64
Angular: 6.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.3
@angular-devkit/build-angular 0.6.3
@angular-devkit/build-optimizer 0.6.3
@angular-devkit/core 0.6.3
@angular-devkit/schematics 0.6.3
@angular/cdk 6.2.0
@angular/cli 6.0.7
@angular/material 6.2.0
@ngtools/webpack 6.0.3
@schematics/angular 0.6.7
@schematics/update 0.6.7
rxjs 6.1.0
typescript 2.7.2
webpack 4.8.3
Closing as resolved.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Versions
Repro steps
I followed the official update guide on Angular Update Guide:
yarn global add @angular/cli
- OKyarn add @angular/cli
- OKng update @angular/cli
- ERROR:no elements in sequence
Observed behavior
ERROR:
no elements in sequence
Btw,
ng update
throws the same error message with any dependency mentioned in update guide:ng update @angular/core
- ERROR:no elements in sequence
ng update @angular/material
- ERROR:no elements in sequence
ng update
- ERROR:no elements in sequence
The same error gets thrown even with a new Angular 6 project generated with:
ng new ng6
ng update
- ERROR:no elements in sequence
When I downgraded Angular Cli from
6.0.3
, which is the latest, to version6.0.0
,ng update @angular/cli
worked well, with no errors.The problem is that with version
6.0.0
ng update @angular/core
throws an error:Invalid range: ">=2.3.0 <3.0.0||>=4.0.0"
And there we are again in a magical loop of versions, which do not work as they should!
Any version higher than 6.0.0 is throwing the
no elements in sequence
error!Desired behavior
Updated Angular Cli and other dependencies.
Mention any other details that might be useful (optional)
package.json
contents: