dfrankland/react-amphtml

Validation error in Amp Video

Opened this issue · 0 comments

Zuiev commented

Hi,

thanks for this package, it works very well!
I'm getting a validation error that comes from amp video component:

The tag 'amp-video' requires including the 'amp-video' extension JavaScript. (see https://amp.dev/documentation/components/amp-video/)

Apparently amp validator is expecting to get:
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>

But script below is the one injected in my document <head>
<script async="" custom-element="amp-video" data-script="amp-video" i-amphtml-inserted="" crossorigin="anonymous" src="https://cdn.ampproject.org/rtv/012107170150000/v0/amp-video-0.1.js"></script>

Video works fine, the only issue is referred to validation. Is there anything I can do to fix that?

Thanks!