Skip to content

FIX: t.resizeSensor.resetSensor is not a function JS error #291

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

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

Achara
Copy link
Contributor

@Achara Achara commented Apr 2, 2020

When using libraries that have css-element-queries as dependency, this JS error occurs. (Please see the screenshot) In my case, I use amcharts 4 and ember-table libraries in my ember application The JS error refers to t.resizeSensor.resetSensor is not a function. t.resizeSensor.resetSensor seems to be undefined when it is invoked. To prevent this error, I added if condition to invoke only t.resizeSensor.resetSensor is not undefined.

Screen Shot 2020-04-01 at 10 06 57 AM

@marcj marcj merged commit ee21dfe into marcj:master Apr 13, 2020
@marcj
Copy link
Owner

marcj commented Apr 13, 2020

Thanks!

@Achara
Copy link
Contributor Author

Achara commented Apr 14, 2020 via email

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

Successfully merging this pull request may close these issues.

2 participants