I made a component to embed a youtube video in my React app and it works great.
To do that i'm using an iframe.
<div className="embed-responsive embed-responsive-16by9">
<iframe className="embed-responsive-item" src={`${BASE_URL}${videoId}`}/>
</div>
But even if it works, I don't know why but I got this error.
sw.js:5 Uncaught TypeError: Object.defineProperty called on non-object
This seems to be a youtube issue because if I use another URL in my iframe than : https://www.youtube.com/embed/ZJD1zoAaCmo like for example : https://www.dailymotion.com/embed/video/xwr14q
I'll not have the error anymore
If you have any idea it would be really appreciated
Thanks by advance !