ampproject / ampproject/amphtml
[amp-story-player] Error when story imports amp-viewer-integration
- 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
Assessment
This issue has not been assessed yet.