dfrankland / react-amphtml

⚡️ Use amphtml components inside your React apps easily!
https://www.npmjs.com/package/react-amphtml
143 stars 26 forks source link

Validation error in Amp Video #161

Open Zuiev opened 3 years ago

Zuiev commented 3 years ago

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!