Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

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

Open bababrownbear opened 5 years ago

bababrownbear commented 5 years ago

This change is Reviewable

nader-eloshaiker commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

EL-Yapany commented 5 years ago

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