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.

Object doesn't support property or method 'remove' in 0.16.0 on IE

See original GitHub issue

monaco-editor version: 0.16.0 Browser: IE OS: Windows

Steps or JS usage snippet reproducing the issue: 1.) Go to Monaco Editor Playground in Internet Explorer 2.) Right click inside the editor to bring up the right click menu. 3.) Attempt to left click to dismiss menu.

At this point you will get the following error:

SCRIPT5022: Object doesn't support property or method 'remove'

TypeError: Object doesn't support property or method 'remove'
   at onHide (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:1425:855)
   at t.prototype.hide (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:267:101)
   at t.prototype.hideContextView (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:1399:375)
   at Anonymous function (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:1425:557)
   at e.prototype.fire (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:57:216)
   at Anonymous function (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:702:714)
   at e.prototype.fire (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:57:216)
   at Anonymous function (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:132:595)
errors.ts (22,6)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Zlatkovskycommented, Mar 14, 2019

Thanks, @rebornix . Note that you may want to update https://microsoft.github.io/monaco-editor/playground.html to use the latest, right now it looks like it’s still grabbing the old 0.16.0 files:

image

0reactions
Zlatkovskycommented, Mar 15, 2019

Great. @rebornix , could you please take a look at the other IE11 issue as well, that’s also possible to repro using the site? Or redirect to a colleague? See #1367.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE: Object doesn't support property or method 'remove' #8406
function removeDiv(){ const divRef = document.getElementByClassName('test'); divRef[0].remove(); // this line will through error in IE and works ...
Read more >
javascript - Object doesn't support property or method 'remove'
It's not supported in IE developer.mozilla.org/en-US/docs/Web/API/ChildNode.remove. – Jason Sperske. Sep 20, 2013 at 14:49 · 2. stackoverflow.com/questions/ ...
Read more >
Object doesn't support property or method 'remove' in IE
Way to Fix an error: Object doesn't support property or method 'remove' in IE for ReactJS ... You can use the polyfill from...
Read more >
Element Object doesn't support property or method 'remove' In IE
It is due to that IE doesn't support remove() function for DOM element. But if you change to the following, things work much...
Read more >
Object doesn't support this property or method
1) In Internet Explorer, select the Tools menu and then click Internet Options. · 2) Click the Advanced tab, Click Reset button. ·...
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