Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃毃 Error: this.ca.toggleAttribute is not a function #93

Closed
ampprojectbot opened this issue Jul 2, 2021 · 5 comments
Closed

馃毃 Error: this.ca.toggleAttribute is not a function #93

ampprojectbot opened this issue Jul 2, 2021 · 5 comments
Assignees

Comments

@ampprojectbot
Copy link
Member

Details

Error report: link
First seen: Apr 10, 2021
Frequency: ~ 1,984/day

Stacktrace

Notes

@processprocess modified extensions/amp-story/1.0/amp-story-draggable-drawer.js:263-264 in #33601 (Apr 2, 2021)
@gmajoulet modified extensions/amp-story/1.0/amp-story-draggable-drawer.js:212-215 in #23696 (Aug 6, 2019)
@gmajoulet modified extensions/amp-story/1.0/amp-story-store-service.js:549-552 in #14265 (Mar 27, 2018)
@gmajoulet modified extensions/amp-story/1.0/amp-story-draggable-drawer.js:183-210 in #23696 (Aug 6, 2019)
@gmajoulet modified extensions/amp-story/1.0/amp-story-page-attachment.js:298-299 in #23696 (Aug 6, 2019)
@gmajoulet modified extensions/amp-story/1.0/amp-story-draggable-drawer.js:183-210 in #23696 (Aug 6, 2019)
@jridgewell modified src/core/data-structures/promise.js:82-85 in #15143 (May 8, 2018)
@renovate-bot modified src/core/data-structures/promise.js:81-81 in #27350 (Mar 30, 2020)

Seen in:

  • 06-18 Control (2132)
  • 06-18 Nightly-Control (2132)
  • 06-18 Stable (2132)
  • 06-26 Beta (0436)
  • 06-26 Experiment-B (0436)
  • 06-30 Nightly (2324)
  • +2 more

Possible assignees: @processprocess, @gmajoulet

/cc @ampproject/release-on-duty

@rcebulko
Copy link
Collaborator

rcebulko commented Jul 2, 2021

@processprocess
headerEl_ is defined as nullable here: https://github.com/ampproject/amphtml/blob/2106182132000/extensions/amp-story/1.0/amp-story-draggable-drawer.js#L100
It's then accessed without a check here: https://github.com/ampproject/amphtml/blob/2106182132000/extensions/amp-story/1.0/amp-story-draggable-drawer.js#L264
Would you mind taking a peek at this?

/cc @samouri This is an excellent example of an error that accurate type-checking can eventually prevent completely. WDYT about creating a label or #searchable tag of some sort to start marking these types of issues as something to point to when looking to allocate time on type-checking?

@ampprojectbot
Copy link
Member Author

A duplicate error report was linked to this issue (link)

@ampprojectbot
Copy link
Member Author

A duplicate error report was linked to this issue (link)

@ampprojectbot
Copy link
Member Author

A duplicate error report was linked to this issue (link)

@processprocess
Copy link

Closed by #37420

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

No branches or pull requests

3 participants