question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Draft example files don't render in IE and Edge in windows 10

See original GitHub issue

Do 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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
flarniecommented, Mar 18, 2017

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.

1reaction
nsfmccommented, Mar 17, 2017

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. ¯_(ツ)_/¯

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found