Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bababrownbear
Copy link

@bababrownbear bababrownbear commented Oct 1, 2018

This change is Reviewable

@nader-eloshaiker
Copy link

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 :)

@Frozen-byte
Copy link

Frozen-byte commented Oct 31, 2018

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';

@basemmerink
Copy link

basemmerink commented Dec 6, 2018

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

@EL-Yapany
Copy link

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';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants