-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
RxJS version:
- 6.0.0-ucandoit-rc.6
- 6.0.0-uncanny-rc.7
Code to reproduce:
- typescript code
import { range, from, concat } from 'rxjs';
import { reduce } from 'rxjs/internal/operators';
concat(
from(['A','B','C']),
reduce(()=> {
console.log('reduce?');
}),
).subscribe(
r => console.log('next', r),
e => console.error('error', e),
() => console.log('CMPLITE'),
);
Expected behavior:
version wants the same behavior in 6.0.0-ucandoit-rc.6
and 6.0.0-uncanny-rc.7
Actual behavior:
Version 6.0.0-uncanny-rc.7
raises the following exceptions
> ts-node index.ts
next A
next B
next C
error 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 (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/util/subscribeTo.ts:37:11)
at Object.subscribeToResult (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/util/subscribeToResult.ts:18:10)
at MergeMapSubscriber._innerSub (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/operators/mergeMap.ts:139:14)
at MergeMapSubscriber._tryNext (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/operators/mergeMap.ts:135:10)
at MergeMapSubscriber._next (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/operators/mergeMap.ts:119:12)
at MergeMapSubscriber.Subscriber.next (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/Subscriber.ts:102:12)
at Observable._subscribe (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/util/subscribeToArray.ts:9:16)
at Observable._trySubscribe (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/Observable.ts:216:19)
at Observable.subscribe (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/Observable.ts:198:87)
at MergeMapOperator.call (/Users/test/project/work/rx-test/node_modules/rxjs/src/internal/operators/mergeMap.ts:94:19)
Additional information:
The related issues are as follows.
angular/angular-cli#10336
From 6.0.0-uncanny-rc.7
, the following process seems to fail.
It seems to be caused by this patch #3562
The cause of the above issues to be due to a similar implementation on devkit side
Metadata
Metadata
Assignees
Labels
No labels