Closed M4sterZer0 closed 5 years ago
Uncaught SyntaxError: The requested module 'https://unpkg.com/embed-js' does not provide an export named 'EmbedJS'
Source:
import {EmbedJS} from "https://unpkg.com/embed-js"; import {youtube} from "https://unpkg.com/embed-plugin-youtube"; import {twitter} from 'https://unpkg.com/embed-plugin-twitter'; var x = new EmbedJS({ input: document.getElementById('myid'), plugins: [ youtube({ details: true, gAuthKey: 'KEY', height: 300 }) ] }); x.render();
use it as import EmbedJS from "https://unpkg.com/embed-js".
import EmbedJS from "https://unpkg.com/embed-js"
It doesn't need jQuery.
But I would recommend you use it from npm if you can.
Source: