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.

Failed to execute 'observe' on 'MutationObserver'

See original GitHub issue

When a dropdown is rendered through an ember island component (https://github.com/mitchlloyd/ember-islands), the dropdown will cause the error:

Failed to execute ‘observe’ on ‘MutationObserver’: parameter 1 is not of type ‘Node’.
  at i.startObservingDomMutations (vendor.js:29)
  at i.open (vendor.js:29)
  at invokeWithOnError (vendor.js:5)
  at s.flush (vendor.js:5)
  at l.flush (vendor.js:5)
  at p.end (vendor.js:5)
  at p.run (vendor.js:6)
  at u (vendor.js:11)
  at HTMLDocument.<anonymous> (vendor.js:32)
  at HTMLDocument.dispatch (vendor.js:4)

For some reason, this.dropdownElement seems not to be available in startObservingDomMutations().

If renderInPlace is set true, then the error does not happen.

Maybe someone had a similar issue?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
nightirecommented, Jul 14, 2018

This issue happens in ember-twiddle as well, any ideas? (except rendeInPlace=true)

0reactions
ddoria921commented, Apr 4, 2020

Curios as well how to fix this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

'observe' on 'MutationObserver': parameter 1 is not of type 'Node'
It is possible/likely that your code is executing prior to the nodes you desire to find existing in the DOM. If so, you...
Read more >
Failed to execute 'observe' on 'MutationObserver': parameter 1 ...
Found a bug that appears on HP ILO4 logins. This is the KVM system on HP based servers. Here is a copy paste...
Read more >
Failed to execute 'observe' on 'MutationObserver': parameter 1 ...
jQuery : Uncaught TypeError: Failed to execute ' observe' on 'MutationObserver ': parameter 1 is not of type 'Node' [ Beautify Your Computer ......
Read more >
MutationObserver.observe() - Web APIs - MDN Web Docs
The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that ...
Read more >
observe-exceptions-expected.txt - Google Git
PASS observer.observe() threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': 1 argument required, but only 0 present.
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