Closed rejhgadellaa closed 5 years ago
I'm getting the same error.
I was able to at least get a workaround going while the issue gets fixed. Update line 421 in the ElementQueries.js file to be the following...
var sensorStyles = window.getComputedStyle(element.resizeSensor || element, null);
@rejhgadellaa
This issue is coming from the fact that in the newest master version we use ResizeObserver in Chrome where element.resizeSensor
is then indeed undefined. See #213 by @movedoa
Please use 1.0.2 instead of the master version.
Awesome thanks! 🎈
Hi @marcj
Please use 1.0.2 instead of the master version
I'm afraid using version 1.0.2 doesn't fix this issue. At least, on my installation doesn't work, the problem appears using both, 1.0.2 and master version.
This should be fixed in the latest version. Please try again and give feedback
still getting issue in 2022!
Hi there,
I'm trying to use your library but I'm getting an error:
This is line 421:
var sensorStyles = window.getComputedStyle(element.resizeSensor, null);
So.. element.resizeSensor is not an element. I just checked and it's actually undefined :(
Any clue what's wrong?