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

Package is not compatible with latest rxjs ^6.0.0 #320

Open 4nd1m4n opened 6 years ago

4nd1m4n commented 6 years ago

Bug, feature request, or proposal:

What is the expected behavior?

What is the current behavior?

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

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

Is there anything else we should know?

    ERROR in ./~/rxjs/Subject.js
Module not found : error : Can't resolve 'rxjs-compat/Subject' in 'X:\Y\z\src\h\XH\node_modules\rxjs'
     @ ./~/rxjs/Subject.js 6:9-39
     @ ./~/md2/tooltip/tooltip.js
     @ ./~/md2/tooltip/index.js
     @ ./~/md2/index.js
     @ dll vendor
eyalerez1 commented 6 years ago

Hi, Does anybody know about a temporary workaround?

4nd1m4n commented 6 years ago

(Simply import the rxjs-compat package for now.)

Meaning in package.json: { "name": "md2", "version": "0.0.29", "description": "Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Chips(Tags), Collapse, Colorpicker, Data Table, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.", "author": "Dharmesh Pipariya pipariyadharmesh@gmail.com", "homepage": "https://github.com/Promact/md2", "bugs": "https://github.com/Promact/md2/issues", ... "dependencies": { "rxjs": "^5.0.1", ...

Here you will probably have to switch to: "rxjs": "^6.0.0", "rxjs-compat": "^6.0.0",

Change rxjs version and add rxjs-compat. Then it -should- work again.

eyalerez1 commented 6 years ago

Thanks!

kevinclerc commented 5 years ago

hey guys How can I achieve that md2 run with angular 6x Do I have to fork the repo and change the package.json file to the new rxjs version?

How can I then build and include the fork in my project?

nader-eloshaiker commented 5 years ago

Hi there, just migrated my app to Angular 6 and have this in package.json: "rxjs": "^6.3.3", "rxjs-compat": "^6.3.3", The only thing that is not working in my app is the m2DateTimePicker? Getting the following error: Uncaught (in promise): TypeError: rxjs_Observable__WEBPACK_IMPORTED_MODULE_3__.Observable.fromEvent is not a function

bababrownbear commented 5 years ago

Can confirm, am having same issue at @nader-eloshaiker, but with colorpicker.

image

https://github.com/ilmstudios/md2/commit/5b75cdb73dec2bfe15f45787e3f172b2135505af

nikuelias commented 5 years ago

Having the same issue. Any workaround?

bababrownbear commented 5 years ago

@nikuelias I submitted a PR: https://github.com/Promact/md2/pull/325

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

kevinclerc commented 5 years ago

Can someone please review this PR? this would be great!

nader-eloshaiker commented 5 years ago

@ilmstudios would you consider perhaps publishing your repo to npm, I get the feeling that this repo is either abandoned or relegated to casually supported.

kevinclerc commented 5 years ago

@ilmstudios yes please publish your repo, I think a lot of people would need this change...

nader-eloshaiker commented 5 years ago

Ok I’m abondoning this project and moving on. It looks like the future of this project is dead. Thanks for all the work up to this point and all the best.

liuy97 commented 5 years ago

I republished a npm package (https://www.npmjs.com/package/angular-md2) supporting rxjs6, If someone reaches here and still waits for a new version of this project. I only used md2 datepicker, and didn't test the others.