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

Package is not compatible with latest rxjs ^6.0.0 #320

Open
4nd1m4n opened this issue Jul 16, 2018 · 14 comments
Open

Package is not compatible with latest rxjs ^6.0.0 #320

4nd1m4n opened this issue Jul 16, 2018 · 14 comments

Comments

@4nd1m4n
Copy link

4nd1m4n commented Jul 16, 2018

Bug, feature request, or proposal:

  • Bug.

What is the expected behavior?

  • Correct dependency information available, that shows the user that md2 is currently using rxjs ^5.0.0 versions import pathes wich where changed in ^6.0.0.

What is the current behavior?

  • Compilation process will ask for the rxjs-compat package wich is a compatibility layer that can just be importet and will fix all breaking changes from rxjs ^5 to ^6 so that later one can focus on porting the project 'really' from ^5 to ^6.

What are the steps to reproduce?

  • Trying to compile a project with md2 in the webpack config.

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

  • Make md2 work again. (Simply import the rxjs-compat package for now.)

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

  • Angular 6

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
  • Typical error message
@eyalerez1
Copy link

Hi,
Does anybody know about a temporary workaround?

@4nd1m4n
Copy link
Author

4nd1m4n commented Aug 2, 2018

(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 [email protected]",
"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
Copy link

Thanks!

@kevinclerc
Copy link

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
Copy link

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
Copy link

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

image

bababrownbear@5b75cdb

@nikuelias
Copy link

Having the same issue. Any workaround?

@bababrownbear
Copy link

bababrownbear commented Oct 1, 2018

@nikuelias I submitted a PR:
#325

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

@kevinclerc
Copy link

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

@nader-eloshaiker
Copy link

@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
Copy link

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

@nader-eloshaiker
Copy link

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
Copy link

liuy97 commented Oct 15, 2018

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.

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

No branches or pull requests

7 participants