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 111 forks source link

ERROR in node_modules/md2/core/a11y/list-key-manager.d.ts(2,10): error TS2305: Module has no exported member "Observable" #334

Open nik0405 opened 5 years ago

nik0405 commented 5 years ago

Bug-

I am getting below error after installing the md2 package .

ERROR in node_modules/md2/core/a11y/list-key-manager.d.ts(2,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported member 'Observable '. node_modules/md2/core/overlay/overlay-ref.d.ts(5,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported member 'Observable'. node_modules/md2/core/overlay/position/connected-position-strategy.d.ts(5,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Subject"' has no exported member 'Subject'. node_modules/md2/core/overlay/position/connected-position-strategy.d.ts(6,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported memb er 'Observable'. node_modules/md2/core/overlay/scroll/scroll-dispatcher.d.ts(4,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Subject"' has no exported member 'Subject'. node_modules/md2/core/overlay/scroll/scroll-dispatcher.d.ts(5,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Subscription"' has no exported member 'Subscr iption'. node_modules/md2/core/overlay/scroll/scrollable.d.ts(2,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported member 'Observable'. node_modules/md2/core/selection/selection.d.ts(1,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Subject"' has no exported member 'Subject'. node_modules/md2/core/style/focus-origin-monitor.d.ts(2,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported member 'Observable'. node_modules/md2/select/select.d.ts(6,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported member 'Observable'. node_modules/md2/tooltip/tooltip.d.ts(4,10): error TS2305: Module '"C:/ATOM_D993/atom-ng-ui/node_modules/rxjs/Observable"' has no exported member 'Observable'. node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'. node_modules/rxjs/Subject.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subject'. node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscription'.

What are the steps to reproduce?

Just after installing the package and serve it on localhost.

Which versions of Angular, MD2, OS, browsers are affected?

"@angular/core": "^7.2.13", "@angular/material": "7.3.7", "md2": "0.0.33", "rxjs": "^6.4.0",.

Please help how to resolve this error.