Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redux editor state - console warrnings about immutable.js #617

Open
jan0991 opened this issue Feb 21, 2018 · 4 comments
Open

Redux editor state - console warrnings about immutable.js #617

jan0991 opened this issue Feb 21, 2018 · 4 comments

Comments

@jan0991
Copy link

jan0991 commented Feb 21, 2018

I keep getting this:

https://stackoverflow.com/questions/48893536/iterable-length-has-been-deprecated

Not sure if it's a bug or I am doing something wrong, but I tried a bunch of things and nothing seems to help.
It's super annoying as it happens on every key press, any ideas?

@cacharrin
Copy link

Im getting the same warning a lot of times in the console.

iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version

I'm concerned about: "This warning will become a silent error in a future version"

Any ideas how to solve it?

@jpuri
Copy link
Owner

jpuri commented May 2, 2018

Which version of immutableJS are you using, I am not able to replicate this issue. If possible can you share the repo so i can try to reproduce this.

@cacharrin
Copy link

Sure.

I'm not requiring immutableJs directly, but running npm ls immutable output this:

Let me know if you need something else, and thank you ;)

@loborobo
Copy link

Apparently, the answer is to force Yarn to use immutable 3.8.2:

"resolutions": {
    "**/draft-js/immutable": "3.8.2"
},
"dependencies": {
     ...my dependencies
}

source: facebookarchive/draft-js#950 (comment)

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

No branches or pull requests

4 participants