-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Too much warning message in browser console. #1647
Comments
@LeonDWong as far as I can see, the Immutable dependency hasn't changed in 0.10.5 – it's still I don't see any of those warning messages in my editor, are you sure you're not using another version of Immutable? You can check this with |
@thibaudcolas |
I haven't seen those warnings in my Draft.js projects using Immutable 3.7.x, so most likely they are produced because some other (not Draft.js?) part of the code which depends on Immutable is using the wrong version, or using those deprecated APIs. There is already another issue about updating it in Draft.js, over at #950. |
This warning can be disabled with |
It seems like that other updating issue already exist. Closed. |
@hxgdzyuyi where should we put the |
you can put it into your entry file(before use such as: import React from 'react'
import ReactDOM from 'react-dom'
import MainSection from './MainSection'
....
import Immutable from 'immutable'
// See more: https://github.com/facebook/draft-js/issues/950
Immutable.Iterable.noLengthWarning = true
....
ReactDOM.render(
<Provider store={store}>
<MainSection />
</Provider>,
document.getElementById('react-app-root')
) |
Latest draft.js(0.10.5) requires immutable.js which's version is defined between 3.7.0 to 3.7.x as dependency, it prints too much warning message when it runs in browser. See below.

AFAIK, immutable.js won't print this message once it is updated to 3.8.x, similar issue
Could it be fixed? Thx.
The text was updated successfully, but these errors were encountered: