Closed konradbjk closed 1 year ago
I suspect this is because the loader thinks it's a common js module, when it's ESM. The release today (v1.5.0) should resolve this. Give it a spin, let me know.
Same issue here! Running latest version of lite-youtube (1.5.0) and latest Next.js (13.1.6) Was able to get it to load without errors by dynamically importing it in useEffect--didn't work with Next's top-level dynamic import.
useEffect(() => {
async function importYoutubeLite() {
const youtubeLite = import("@justinribeiro/lite-youtube");
}
importYoutubeLite();
}, []);
Not my favorite workaround, but it works!
While running
yarn dev
I am getting the below error. Installed the package via yarn.