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

Incompatibility with create-react-app? #29

Open
mtlatif opened this issue Jun 21, 2017 · 6 comments
Open

Incompatibility with create-react-app? #29

mtlatif opened this issue Jun 21, 2017 · 6 comments

Comments

@mtlatif
Copy link

mtlatif commented Jun 21, 2017

Hi,

I could not get the example code to run with create-react-app. I also tried a simple web pack deployment solution to no avail.
I get several errors during markdown substitutions such as this one:

Uncaught TypeError: Cannot read property 'get' of undefined at getUpdatedSelectionState (http://localhost:3000/static/js/bundle.js:28787:35) at getDraftEditorSelectionWithNodes (http://localhost:3000/static/js/bundle.js:28298:23) at getDraftEditorSelection (http://localhost:3000/static/js/bundle.js:48661:10) at editOnSelect (http://localhost:3000/static/js/bundle.js:48143:27) at http://localhost:3000/static/js/bundle.js:44738:19 at Object.ReactErrorUtils.invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:19854:16) at executeDispatch (http://localhost:3000/static/js/bundle.js:19361:21) at Object.executeDispatchesInOrder (http://localhost:3000/static/js/bundle.js:19384:5) at executeDispatchesAndRelease (http://localhost:3000/static/js/bundle.js:13363:22) at executeDispatchesAndReleaseTopLevel (http://localhost:3000/static/js/bundle.js:13374:10) at Array.forEach (native) at forEachAccumulated (http://localhost:3000/static/js/bundle.js:34862:9) at Object.processEventQueue (http://localhost:3000/static/js/bundle.js:13577:7) at runEventQueueInBatch (http://localhost:3000/static/js/bundle.js:68734:18) at Object.handleTopLevel [as _handleTopLevel] (http://localhost:3000/static/js/bundle.js:68745:5) at handleTopLevelImpl (http://localhost:3000/static/js/bundle.js:68832:24) at ReactDefaultBatchingStrategyTransaction.perform (http://localhost:3000/static/js/bundle.js:16234:20) at Object.batchedUpdates (http://localhost:3000/static/js/bundle.js:68575:26) at Object.batchedUpdates (http://localhost:3000/static/js/bundle.js:8655:27) at dispatchEvent (http://localhost:3000/static/js/bundle.js:68907:20) :3000/static/js/bundle.js:47692

I tested the demo code and it works perfectly fine. It's probably a silly oversight on my part but I can't figure out why the demo works but not any of my implementations.

Please look into it.
Thanks

@hugski
Copy link

hugski commented Jun 29, 2017

same issue with create-react-app
shot 2017-06-29 17 11 08

@mxstbr
Copy link
Contributor

mxstbr commented Jul 20, 2017

I can't confirm this, I'm running a huge create-react-app-based app and it's working perfectly!

@mtlatif
Copy link
Author

mtlatif commented Jul 20, 2017

I will test again and confirm. I was just watching your React Amsterdam video. You are an inspiration. Keep up the good work.

@mxstbr
Copy link
Contributor

mxstbr commented Jul 20, 2017

Thank you, I appreciate that! 😊

@michaelcox
Copy link

I had this issue when I was using 2.0.0-beta1 of draft-js-plugins-editor (the default at the time if you don't specify a version). I upgraded to 2.0.0-rc3 and the issue is no longer there.

@lhnrd
Copy link

lhnrd commented Oct 4, 2017

Can confirm @michaelcox answer.

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

5 participants