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
Error: Cannot call method 'requestMeasure' of undefined #18207
Comments
reassigning to @jridgewell |
This is a high priority issue but it hasn't been updated in awhile. @jridgewell Do you have any updates? |
2 similar comments
This is a high priority issue but it hasn't been updated in awhile. @jridgewell Do you have any updates? |
This is a high priority issue but it hasn't been updated in awhile. @jridgewell Do you have any updates? |
This is still being logged in version 1901302225410
|
@jridgewell / @choumx: this is still marked P1 and yet hasn't had activity since 2019. Is there action for us to take here? I see this recent message in our error logs: version: "011912180046560"
|
Wanna investigate it? 😉 |
https://github.com/ampproject/amphtml/blob/1912180046560/src/service/resources-impl.js#L627 Looks like there's more than one cause. How prominent is the error? E.g. top N. |
While there are a few others, this is the most prominent cause of this error by far. In terms of this error vs. others, this one is pretty low on the occurrences list. The problem snippet is this: const ampElements = element.getElementsByClassName('i-amphtml-element');
for (let i = 0; i < ampElements.length; i++) {
const r = Resource.forElement(ampElements[i]);
r.requestMeasure(); // <--- `r` is undefined
} While So the culrpit must be |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
@aghassemi can you check the following production error. Thanks.
Error: Impossible d’obtenir la propriété « requestMeasure » d’une référence null ou non définie
at (https://raw.githubusercontent.com/ampproject/amphtml/1809142227020/src/focus-history.js:120)
at (https://raw.githubusercontent.com/ampproject/amphtml/1809142227020/src/service/viewport/viewport-impl.js:559)
at animateScrollIntoViewInternal_ (https://raw.githubusercontent.com/ampproject/amphtml/1809142227020/src/service/viewport/viewport-impl.js:539)
Version
011809142227020
https://pantheon.corp.google.com/errors/CP6dwsLQn4P4uQE?service=default-cdn-1p&time=P1D&project=amp-error-reporting
The text was updated successfully, but these errors were encountered: