question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't update @angular/cli from 1.7.x to @next

See original GitHub issue

Versions

Angular CLI: 6.0.0-rc.4
Node: 9.11.1
OS: win32 x64
Angular: 5.2.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.5.6
@angular-devkit/build-angular   0.5.6
@angular-devkit/core            0.5.6 (cli-only)
@angular-devkit/schematics      0.5.6 (cli-only)
@angular/cli                    6.0.0-rc.4
@ngtools/json-schema            1.2.0
@schematics/angular             0.5.6 (cli-only)
@schematics/update              0.5.6
rxjs                            5.5.6
typescript                      2.5.3

Repro steps

Observed behavior

C:\workspace\angular-ais>ng update @angular/cli --migrate-only --from=1.7.0
            Updating karma configuration
            Updating configuration
            Removing old config file (.angular-cli.json)
            Writing config file (angular.json)
npm WARN rm not removing C:\workspace\angular-ais\node_modules\.bin\semver.cmd as it wasn't installed by C:\workspace\angular-ais\node_modules\semver
npm WARN rm not removing C:\workspace\angular-ais\node_modules\.bin\semver as it wasn't installed by C:\workspace\angular-ais\node_modules\semver

> uws@9.14.0 install C:\workspace\angular-ais\node_modules\uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0


> node-sass@4.7.2 install C:\workspace\angular-ais\node_modules\node-sass
> node scripts/install.js

Cached binary found at C:\Users\PaiChun Chang\AppData\Roaming\npm-cache\node-sass\4.7.2\win32-x64-59_binding.node

> node-sass@4.7.2 postinstall C:\workspace\angular-ais\node_modules\node-sass
> node scripts/build.js

Binary found at C:\workspace\angular-ais\node_modules\node-sass\vendor\win32-x64-59\binding.node
Testing binary
Binary is fine

> @angular/cli@6.0.0-rc.4 postinstall C:\workspace\angular-ais\node_modules\@angular\cli
> node ./bin/ng-update-message.js

npm WARN mini-css-extract-plugin@0.3.0 requires a peer of webpack@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN stats-webpack-plugin@0.6.2 requires a peer of webpack@>=1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 688 packages, removed 49 packages and updated 611 packages in 50.876s
DELETE .angular-cli.json
CREATE angular.json (4029 bytes)
UPDATE karma.conf.js (1040 bytes)
UPDATE src/tsconfig.spec.json (302 bytes)
UPDATE package.json (1445 bytes)
UPDATE tslint.json (2997 bytes)
C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\util\subscribeTo.js:42
        throw new TypeError(msg);
        ^

TypeError: You provided 'function reduceOperatorFunction(source) {
        return pipe_1.pipe(scan_1.scan(function (acc, value, index) {
            return accumulator(acc, value, index + 1);
        }), takeLast_1.takeLast(1))(source);
    }' where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
    at Object.exports.subscribeTo (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\util\subscribeTo.js:42:15)
    at Object.subscribeToResult (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\util\subscribeToResult.js:7:26)
    at MergeMapSubscriber._innerSub (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\operators\mergeMap.js:132:38)
    at MergeMapSubscriber._tryNext (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\operators\mergeMap.js:129:14)
    at MergeMapSubscriber._next (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\operators\mergeMap.js:112:18)
    at MergeMapSubscriber.notifyComplete (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\operators\mergeMap.js:148:18)
    at InnerSubscriber._complete (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\InnerSubscriber.js:37:21)
    at InnerSubscriber.Subscriber.complete (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\Subscriber.js:128:18)
    at Observable.rxjs_1.concat.rxjs_1.concat.rxjs_1.Observable.obs [as _subscribe] (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\tools\workflow\node-workflow.js:113:17)
    at Observable.subscribe (C:\workspace\angular-ais\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\Observable.js:162:69)

Desired behavior

Mention any other details that might be useful (optional)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
dlarafcommented, Apr 14, 2018

same thing here from 1.7.4 to r.c.4

1reaction
filipesilvacommented, Apr 16, 2018

https://github.com/angular/angular-cli/issues/10336 seems to be the same as this one. It looks to be related or caused by rxjs@6.0.0-uncanny-rc.7, and happens on new projects as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade Angular CLI to the latest version
To update Angular CLI to a new version, you must update both the global package and your project's local package.
Read more >
ng update - Angular
Perform a basic update to the current stable release of the core framework and CLI by running the following command. ... To update...
Read more >
How To Update Angular CLI To Latest Version
To update Angular CLI to latest version Angular, use ng update @angular/core @angular/cli@latest command.
Read more >
Angular CLI update: How to upgade Angular CLI - AppDividend
To update to the next beta or pre-release version, use the –next=true ... Upgrading Angular CLI to the next version required some steps....
Read more >
How to update local Angular CLI version? in package.json file ...
Your global Angular CLI version (8.0.2) is greater than your local version (7.3.8). The local Angular CLI version is used. To disable this ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found