Draft example files don't render in IE and Edge in windows 10
See original GitHub issueDo you want to request a feature or report a bug? This is a bug
What is the current behavior?
After cloning the master branch of the Draft.js repository, running npm update
and npm run build
in the main directory, and opening the example file examples/draft-0-10-0/color/color.html
the example editor does not render and the console shows an error:
'Draft' is undefined
Function code (4) (15, 1)
The same example file will render fine in Chrome and Firefox on the same Windows 10 laptop.
What is the expected behavior? I expect the example to render with no errors.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? Master branch of Draft.js on Internet Explorer and Edge in Windows 10.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Internet Explorer (IE) mode troubleshooting and FAQ
Troubleshooting guide and FAQ for Microsoft Edge Internet Explorer mode.
Read more >Fix site display issues with Compatibility View in Internet ...
Learn how to fix website display problems using Compatibility View in Internet Explorer.
Read more >Fix web compatibility issues using document modes and ...
Test your sites for document mode compatibility · Go to a site having compatibility problems, press F12 to open the F12 Developer Tools,...
Read more >Configure IE mode Policies
Click User Configuration/Computer Configuration > Administrative Templates > Microsoft Edge. Double-click Configure Internet Explorer ...
Read more >Configure your browser for Figma
Select your browser below for more detailed instructions. Google Chrome Mozilla Firefox Safari Microsoft Edge. Open Chrome and go to the Settings page...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I was editing the path to the
Draft.js
file and it just started working. I still don’t know why. For now I am unblocked to manually test the 0.10.1 and 0.11.0@next releases, but still want to figure out why this was happening.I had tried clearing my browser cache, and that didn’t help, but something like that could be the cause.
in the course of debugging something else i tried triggering this from the latest
master
commit using the steps outlined here and proxying localhost through browserstack, one time the build failed i got exactly the'Draft' is undefined error
, the second time i reran the build and now i just get the unique key error. i’m not sure why the draft build failed though. ¯_(ツ)_/¯