md2 icon indicating copy to clipboard operation
md2 copied to clipboard

Fix for 'Obserable.fromEvent is not a function'.

Open bababrownbear opened this issue 7 years ago • 4 comments

This change is Reviewable

bababrownbear avatar Oct 01 '18 15:10 bababrownbear

I am very appreciative of this pull request, is there any way to move this review along quicker so that is can be published? Would appreciate it even more :)

nader-eloshaiker avatar Oct 03 '18 01:10 nader-eloshaiker

on npm run build I still get the error: • TS2305 - src/lib/core/overlay/scroll/scroll-dispatcher.ts(5,21): Module '"/home/md2/node_modules/rxjs/Rx"' has no exported member 'fromEvent'.

you may import import {Observable} from 'rxjs/Observable'; import { fromEvent } from 'rxjs/observable/fromEvent';

Frozen-byte avatar Oct 31 '18 17:10 Frozen-byte

It looks like the MD2 project is dead. You can follow this link for a hacky workaround for this error

basemmerink avatar Dec 06 '18 17:12 basemmerink

As a work arround : Go to: node_modules\md2\core\overlay\scroll\scroll-dispatcher.js line 13 : import { Observable } from 'rxjs/Observable'; replace with : import { Observable } from 'rxjs';

EL-Yapany avatar Jun 20 '19 14:06 EL-Yapany