ampproject / ampproject/amphtml

[amp-story-player] Error when story imports amp-viewer-integration

Open
#29,221 1 comment 0 reactions 1 assignee Claimed by @gmajoulet View on GitHub
Stale Type: Bug WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

If a story inside the player imports amp-viewer-integration, the following error is thrown. Player still functions normally.

```
v0.js:109 message channel can only be initialized once
Cf @ v0.js:109
v0.js:415 Uncaught (in promise) Error: message channel can only be initialized once
at Zk.f.setMessageDeliverer (v0.js:415)
at Qa (amp-viewer-integration-0.1.js:38)
at amp-viewer-integration-0.1.js:37
v0.js:109 message channel can only be initialized once
Cf @ v0.js:109
v0.js:415 Uncaught (in promise) Error: message channel can only be initialized once
at Zk.f.setMessageDeliverer (v0.js:415)
at Qa (amp-viewer-integration-0.1.js:38)
at amp-viewer-integration-0.1.js:37
v0.js:109 message channel can only be initialized once
Cf @ v0.js:109
v0.js:415 Uncaught (in promise) Error: message channel can only be initialized once
at Zk.f.setMessageDeliverer (v0.js:415)
at Qa (amp-viewer-integration-0.1.js:38)
at amp-viewer-integration-0.1.js:37
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.