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

Javascript MutationObserver Error #269

Open
ChaoticDalo opened this issue Nov 14, 2023 · 1 comment
Open

Javascript MutationObserver Error #269

ChaoticDalo opened this issue Nov 14, 2023 · 1 comment

Comments

@ChaoticDalo
Copy link

On a vanilla install of Moodle 4.1.x with Snap installed I keep seeing the following error:

snap-ce.js:1 Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
at o..f.. [as observe] (snap-ce.js:1:19691)
at HTMLDocument. (snap.js:1226:39)
at mightThrow (jquery-3.6.1.js:3766:29)
at process (jquery-3.6.1.js:3834:12)
at l.invokeTask (snap-ce.js:1:8751)
at i.runTask (snap-ce.js:1:4160)
at invokeTask (snap-ce.js:1:9801)
at invoke (snap-ce.js:1:9703)
at n.args. (snap-ce.js:1:33675)

Can you please do some fixy-fu on it, thx.

@ChaoticDalo
Copy link
Author

Ah, I found the issue.
snap.js line 1213:
var targetTilesSect = document.querySelector('section#tiles-section');

targetTilesSect is null and you are trying to do stuff with it so.......

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

1 participant