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

TypeError: t.observe is not a function. (In 't.observe(l,{characterData:!0})', 't.observe' is undefined) #81

Open
IvanAbadzhiev opened this issue Jul 13, 2022 · 2 comments

Comments

@IvanAbadzhiev
Copy link

Hi, I am using your library, and when some user with Safari: 11 ~ 12 visit my website, my code crash with this error

TypeError: t.observe is not a function. (In 't.observe(l,{characterData:!0})', 't.observe' is undefined)
{"columnNumber":21,"lineNumber":144,"fileName":"webpack:///node_modules/asap/browser-raw.js","functionName":"makeRequestCallFromMutationObserver"}
@kriskowal
Copy link
Owner

That would suggest that somehow MutationObserver or WebKitMutationObserver does not implement observe. ASAP will not use mutation observers if they do not exist on the global. However, Safari has supported mutation observers over that version range.

https://caniuse.com/?search=MutationObserver

Is it possible WebPack has corrupted the function? Can we see a gist of the surrounding text?

Any help at all would be useful. I have not needed to actively maintain this package in five years.

@kriskowal
Copy link
Owner

Does anyone watching this project have a moment to attempt to isolate and reproduce?

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

2 participants