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.

Broken in iOS 11, 12, 13 after updating from 5.2 to version 6.6

See original GitHub issue

After we updated to 6.6 users on iOS 11-13 get an error undefined is not a constructor, evaluating new window.ResizeObserver(n.resizeHandler)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
azmatranacommented, Oct 25, 2021

This issue still exists in latest version 6.7.6 as well.

import ResizeObserver from 'react-resize-detector/build/withPolyfill';

This has fixed the issue. I have tested on: Iphone 5, 5s, 6, 6s, 12, 12 pro, 12 pro max. Android 6, 7, 8, 9, 10

3reactions
maslianokcommented, Mar 1, 2021

Starting from version 6 the library uses ResizeObserver without any polyfills since it’s supported by all major browsers.

In order the library to work in the older browser versions - please import the polyfilled version from react-resize-detector/build/withPolyfill:

import ResizeObserver from 'react-resize-detector/build/withPolyfill';

Does it solve the problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

If your iPhone or iPad won't update - Apple Support
Try updating your device again using the same network. If you still see one of these messages, try updating your device using another...
Read more >
Cisco Firepower Release Notes, Version 6.6 - Upgrade the ...
Upgrades to Version 6.6+ will fail if you allocate less than 28 GB to the virtual appliance. After upgrade, the health monitor will...
Read more >
6 Handy Ways to Fix iPhone Stuck on Preparing Update
One of the major causes of this issue is an error with the Apple Servers which store and distribute the iOS 16 update...
Read more >
Release Notes | Firebase - Google
js versions 8, 10, and 12. Dropped support for Admin SDK versions 8 and 9. Update with npm install firebase-admin@latest --save .
Read more >
unc0ver
Download iOS App Signer; Download the latest version of unc0ver from above. ... touch staying operable when a future Apple-supplied iOS update is...
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