TypeError: rxjs_1.fromEvent is not a function
iki789 opened this issue · 5 comments
I keep getting this error, I have all the basic code. Nothing new.
"Uncaught (in promise): TypeError: rxjs_1.fromEvent is not a function\nScrollObservable.prototype._getGlobalObservable@webpack-internal:///../../../../angular-inport/dist/utils/scroll-observable.js:19:29\nScrollObservable@webpack-internal:///../../../../angular-inport/dist/utils/scroll-observable.js:11:50\n_createClass@webpack-internal:///../../../core/esm5/core.js:11107:20\n_createProviderInstance$1@webpack-internal:///../../../core/esm5/core.js:11081:26\nresolveNgModuleDep@webpack-internal:///../../../core/esm5/core.js:11066:17\nNgModuleRef_.prototype.get@webpack-internal:///../../../core/esm5/core.js:12303:16\nresolveDep@webpack-internal:///../../../core/esm5/core.js:12793:12\ncreateClass@webpack-internal:///../../../core/esm5/core.js:12663:32\ncreateDirectiveInstance@webpack-internal:///../../../core/esm5/core.js:12500:37\ncreateViewNodes@webpack-internal:///../../../core/esm5/core.js:13958:53\ncallViewAction@webpack-internal:///../../../core/esm5/core.js:14392:13\nexecComponentViewsAction@webp…
@iki789 Which version of rxjs you are using in the project?
FYI rxjs version should be > 6.
@coderajay I'm using rxjs 5.5.6 with angular 5.2.0 and i'm facing the same problem
@yassinesabri
Two options
-
You can use angular-inport@1.1.0 which gonna work with rxjs 5.5.x.
-
You can upgrade rxjs version to 6 and to support angular@5 use rxjs-compact.
@coderajay Thank you the error is gone.
That's great.