ampproject / error-reporting

Contains production error tracking issues.
Apache License 2.0
2 stars 5 forks source link

🚨 Error: (intermediate value).formatToParts is not a function #103

Closed ampprojectbot closed 2 years ago

ampprojectbot commented 2 years ago

Details

Error report: link First seen: Aug 28, 2021 Frequency: ~ 41/day

Stacktrace

Error: (intermediate value).formatToParts is not a function
    at formatToParts (extensions/amp-date-display/format.js:23:12)
    at getTimeZoneName (extensions/amp-date-display/0.1/amp-date-display.js:274:20)
    at buildCallback (src/custom-element.js:523:28)

Notes

@alanorozco modified extensions/amp-date-display/format.js:1-26 in #35828 (Aug 27, 2021) @alanorozco modified extensions/amp-date-display/0.1/amp-date-display.js:274-275 in #35828 (Aug 27, 2021)

Seen in:

Possible assignees: @alanorozco

/cc @ampproject/release-on-duty

jridgewell commented 2 years ago

/to @alanorozco

This is still nightly, so we're catching it early.

alanorozco commented 2 years ago

@jridgewell Should be fixed as part of ampproject/amphtml#35884, since we're now using optional chaining:

formatter.formatToParts?.(date)
jridgewell commented 2 years ago

Sweet