I thought it was a problem on my side but then I went to try the same code on the editor on the demo page.
Ways to regenerate the error:

I was faced to the same error
I was faced to the same error
It was resolved by changing the version of draft-js to 0.10.*
Most helpful comment
It was resolved by changing the version of draft-js to 0.10.*