Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with Plyr on Mac #2791

Open
andrey-sylka opened this issue Apr 25, 2024 · 0 comments
Open

issue with Plyr on Mac #2791

andrey-sylka opened this issue Apr 25, 2024 · 0 comments

Comments

@andrey-sylka
Copy link

Hello, cant find similar issue in internet but i have got this error

ReferenceError: document is not defined
    at /Users/*******/node_modules/plyr/dist/plyr.js:302:21
    at /Users/*******/node_modules/plyr/dist/plyr.js:311:5
    at /Users/*******/node_modules/plyr/dist/plyr.js:2:83
    at Object.<anonymous> (/Users/*******/node_modules/plyr/dist/plyr.js:5:3)
    at Module._compile (node:internal/modules/cjs/loader:1368:14)

And it is happened only on Mac. On Windows computer all works fine
We are try to use Plyr with svelte
and problem with the import
import Plyr from "plyr";
we install plyr as npm package
It can be fixed with lazy loading, for example import it in onMount, to be sure that it runs in browser. but it is weird that it works differently on Mac and Windows

Thank you in advance if someone can help with any ideas...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant