ng2-tree icon indicating copy to clipboard operation
ng2-tree copied to clipboard

ERROR TypeError: Observable_1.Observable.of is not a function

Open RaviGprec opened this issue 5 years ago • 4 comments

Hi Everyone, I'm just trying to getting the below error when I tried implementing the tree using ng2-tree.

image

RaviGprec avatar Sep 14 '18 08:09 RaviGprec

Same here... And I was also facing issues about rxjs ("Subject and Observable not in rxjs's exports") that made the build fail when running ng serve. Then I installed rxjs-compat and it built, but the same error reported above occurred here.

Running Angular CLI 6.0.1

image

cortinaluis avatar Sep 14 '18 12:09 cortinaluis

I solved this by downgrading rxjs and rxjs-compat to 6.2.1

This seems to be the original issue https://github.com/ReactiveX/rxjs/issues/4070

gschuager avatar Sep 14 '18 21:09 gschuager

I solved this by downgrading rxjs and rxjs-compat to 6.2.1 You need to follow steps from issue #4070 https://github.com/ReactiveX/rxjs/issues/4070

rajkumarm-iprogrammer avatar Nov 29 '18 11:11 rajkumarm-iprogrammer

on tree.js add Below Line Path for add line : node_modules/ng2-tree/src/tree.js

var Observable_1 = require("rxjs/Rx");

t2pdev01 avatar Jan 09 '19 05:01 t2pdev01