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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'ampdoc' of undefined on Amp-next-page #29936

Open
cristalex opened this issue Aug 22, 2020 · 3 comments
Open

Cannot read property 'ampdoc' of undefined on Amp-next-page #29936

cristalex opened this issue Aug 22, 2020 · 3 comments
Labels
Component: amp-next-page Customer: Developer P2: Soon Stale Inactive for one year or more Type: Bug Type: UX issues impacting end user experience

Comments

@cristalex
Copy link

When developing the amp project page, I use the amp-next-page extension version 1.0 (https://github.com/ampproject/amphtml/tree/master/extensions/amp-next-page/1.0). Faced such a problem: if you quickly scroll up/down, then you get duplicate page separators (https://clickio.gyazo.com/f9d2fec4421d5bdf8f1110228d23fa68 ), separators are inserted into the page, but the content of the loaded pages between them (https: //clickio.gyazo. com/ c2150d12ea54633d73ac89802fd52d42 ). In the console of the page, you can see the following errors: https://clickio.gyazo.com/0107e6d4a79b4488848fbb337b020a10. At the same time, no page loading errors are observed in the Network tab: https://clickio.gyazo.com/287aa9f02f5c87d262a0b2021e68cdc7
If you scroll the page at low speed, then such errors still appear in the console (https://clickio.gyazo.com/ddb38830be6d1b6790648f89bf3b4a28 ), but this happens less often, and separators are not duplicated. The general structure of the page looks as it should be: loaded page, separator page, page, page separator, etc.
I did not find any information on how to solve these errors on the Internet, so I am writing here, hoping to get help.
The amp-next-page library version 0.1 was previously used on this page and no such problems were observed.

The problem is reproducible in such browsers: Chrome (v84.0.4147.125), Vivaldi (3.2.1967.47)
AMP version: 2007302351001

The page where you can see:
https://amp.clickiocdn.com/a/www.mensagensdebomdia.com.br/bom-dia-colorido?lx_nocache=1&cl_cachebuster=34573465934534&cldaemon=develop
If you need more information, I will provide it upon request.

@zhouyx
Copy link
Contributor

zhouyx commented Sep 1, 2020

seems related to ampproject/error-reporting#4

@OlgaGamero
Copy link

any solution?

@dmanek dmanek removed their assignment Apr 21, 2022
@stale
Copy link

stale bot commented Sep 17, 2023

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.

@stale stale bot added the Stale Inactive for one year or more label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: amp-next-page Customer: Developer P2: Soon Stale Inactive for one year or more Type: Bug Type: UX issues impacting end user experience
Projects
None yet
Development

No branches or pull requests

5 participants