-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Still broken in node #3536
Comments
What specifically are you trying to with videojs in node? |
Oh, I just tried requiring global directly and it works fine but has issues if it's done through the current dist file in videojs. It should be fixed by #3445. |
Our react components run in both the browser and server, but we use componentDidMount to only invoke videojs on the server. I need to be able to require videojs in both environments, and only have browser things invoke on the browser. In other words, I need to be able to require any module without side effects in any environment. It's fine if videojs doesn't actually work in node - it just needs to be requireable without error. |
Ah, ok, making it requirable sounds fine to me. |
Fixed by #3540. |
Thanks! ETA on an npm release? |
I would like to get #3541 in before a release but definitely this week since I'll be going on vacation starting next week. |
Even with #3502 applied locally, I get:
After trying to patch that locally, I get:
After patching that, I get:
Could the project add a test that requires dist/video.js, in node, so as to ensure none of these continue?
The text was updated successfully, but these errors were encountered: