Repository navigation
Not compatible with @angular/cli@6.2 #35
Copy link
Copy link
Open
Description
The error is:
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
at Object.exports.subscribeTo (/node_modules/@angular/cli/node_modules/rxjs/src/internal/util/subscribeTo.ts:37:11)
at Object.subscribeToResult (/node_modules/@angular/cli/node_modules/rxjs/src/internal/util/subscribeToResult.ts:18:10)
at MergeMapSubscriber._innerSub (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/mergeMap.ts:142:14)
at MergeMapSubscriber._tryNext (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/mergeMap.ts:138:10)
at MergeMapSubscriber._next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/mergeMap.ts:122:12)
at MergeMapSubscriber.Subscriber.next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/Subscriber.ts:102:12)
at MapSubscriber._next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/map.ts:86:22)
at MapSubscriber.Subscriber.next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/Subscriber.ts:102:12)
at TapSubscriber._next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/tap.ts:116:22)
at TapSubscriber.Subscriber.next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/Subscriber.ts:102:12)
at MergeMapSubscriber.notifyNext (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/mergeMap.ts:155:22)
at InnerSubscriber._next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/InnerSubscriber.ts:17:17)
at InnerSubscriber.Subscriber.next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/Subscriber.ts:102:12)
at MapSubscriber._next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/map.ts:86:22)
at MapSubscriber.Subscriber.next (/node_modules/@angular/cli/node_modules/rxjs/src/internal/Subscriber.ts:102:12)
at MergeMapSubscriber.notifyNext (/node_modules/@angular/cli/node_modules/rxjs/src/internal/operators/mergeMap.ts:155:22)
It happens on an ngw serve, probably also the other commands.
Downgrading to cli v6.1 fixes it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
splincode commentedon Sep 10, 2018
Please add more information
larssn commentedon Sep 10, 2018
I did just that. There's not much to go by.
ivanpadavan commentedon Sep 10, 2018
There is enough to go by. Even up to solve the problem :)
akaiserg commentedon Sep 14, 2018
Same problem, I had to fixed the version of cli to 6.1.4. Besides I tried to use @angular-builders/custom-webpack:browser but I got the error "SyntaxError: Unexpected token export" When I was building the app.
alex88 commentedon Sep 22, 2018
Not sure if it's an issue just with 6.2.*, I've downgrade just the CLI to 6.1.5 and I get the same error. Angular core/etc version is 6.1.8Nvm, my problem, forgot to do the setup stepUpdate 2: after doing the setup and fixing the angular.json for 6.1.x CLI the above error is still there using @angular/cli 6.1.4:
Update 3:
The trick was to downgrade
@angular-devkit/build-angularto 0.6.7 (as the package.json of this tool suggests), this solves the above issue but creates this in thengw.config.tsfile:@larssn could you please post your
package.jsonto see which of your dependencies fixes the problem?Update 4:
Changing
"module": "es2015",to"module": "commonjs",fixed theunexpected token exportissuen-lavrenko commentedon Oct 15, 2018
Thank you @alex88 for the
Update 4millerf commentedon Feb 14, 2019
I just got the same problem with angular 7: