ampproject / ampproject/error-reporting

🚨 Error: Cannot destructure property `ampdoc` of 'undefined' or 'null'.

Open
#124 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Details
---
**Error report:** [link](http://go/ampe/CLKV-_Th15OhGw)
**First seen:** Oct 14, 2021
**Frequency:** ~ 1,874/day

Stacktrace
---

Error: Cannot destructure property `ampdoc` of 'undefined' or 'null'.

at amp (multidoc-manager.js:491:21)
at closeShadowRoot_AMP_PRIVATE_ (multidoc-manager.js:149:13)
at close (amp-next-page/1.0/page.js:181:27)
at pause (amp-next-page/1.0/service.js:415:24)
at map (amp-next-page/1.0/service.js:408:9)
at hidePreviousPages_AMP_PRIVATE_ (amp-next-page/1.0/service.js:341:8)
at forEach (amp-next-page/1.0/service.js:332:16)
at updateVisibility (amp-next-page/1.0/service.js:532:13)

/cc @ampproject/release-on-duty

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the stack from extensions/amp-next-page/1.0/service.js and page.js into src/multidoc-manager.js, especially the referenced lines. Determine why the ampdoc value is missing during close and document a reproducible case or regression test; done means the production error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.