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.

ResizeObserver is not polyfilled even though `|force` is used

See original GitHub issue

This is my current script tag:

<script crossorigin src="https://polyfill.app/api/polyfill?features=es,fetch,pointer-event,scroll-behavior,resize-observer|force"></script>

An hour ago I got this error on Sentry:

Screen Shot 2020-03-05 at 9 27 53 AM

For some reason ResizeObserver is not being polyfilled.

This is the user agent:

Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1
Screen Shot 2020-03-05 at 9 28 24 AM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
wessbergcommented, Mar 6, 2020

I understand your situation. I’ve been looking into this a lot today and will continue to do so over the next hours since this causes a lot of issues right now. For now, you can try leaving out es, yes. I will report back as soon as this has been resolved.

0reactions
tommedemacommented, Mar 6, 2020

Ok, I’ll mark it as resolved.

For something like polyfill.app you’d probably want it to be highly available using AWS lambda etc

Read more comments on GitHub >

github_iconTop Results From Across the Web

ResizeObserver#observe() firing the callback immediately ...
The reason it does currently is that the observer fires immediately after observe() is attached, whether any resizing happens or not. If you ......
Read more >
Chart.js 3+, Firefox 68 and Angular: "ReferenceError
So I installed it in my project by typing npm i @juggle/resize-observer and then added it to the polyfill.ts file: import '@juggle/resize- ......
Read more >
Resize Observer API - MDN Web Docs
The Resize Observer API provides a performant mechanism by which code can monitor an element for changes to its size, with notifications ...
Read more >
resize-observer-polyfill - npm
A polyfill for the Resize Observer API. Latest version: 1.5.1, last published: 4 years ago. Start using resize-observer-polyfill in your ...
Read more >
Eternal Polyfilling of the Legacy Browser - Captain Codeman
Examples are things like IntersectionObserver or ResizeObserver which remove the hacky approaches needed to decide if a component is in the viewport or...
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