ampproject / ampproject/amphtml

Error: amp-carousel is already registered

Open
#34,411 4 comments 0 reactions 0 assignees View on GitHub
Stale
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

When I use `amp-carousel-0.2` together with `amp-lightbox-gallery-0.1`, when opening the lightbox this message appears in the console:

`Uncaught (in promise) Error: amp-carousel is already registered. The script tag for amp-carousel is likely included twice in the page.​​​`

Using the `amp-carousel-0.1` version instead everything works correctly.

Tested with Chrome 90.0.4430.93 (64 bit) on Windows.

Contributor guide

Open the contributing guide

Research direction

Reproduce the error with amp-carousel-0.2 and amp-lightbox-gallery-0.1 in Chrome, then trace the component registration entry points for both extensions. Done means opening the lightbox no longer reports that amp-carousel is already registered, while amp-carousel-0.2 continues to work.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.