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

Issues with version 2.1 trying to run simple example #902

Closed
RusseII opened this issue May 28, 2020 · 2 comments
Closed

Issues with version 2.1 trying to run simple example #902

RusseII opened this issue May 28, 2020 · 2 comments

Comments

@RusseII
Copy link

RusseII commented May 28, 2020

https://codesandbox.io/s/intelligent-darwin-rfw03?file=/src/App.js

image

@RusseII
Copy link
Author

RusseII commented May 28, 2020

Works when I downgrade the version to 2.01

@cookpete
Copy link
Owner

2.1.0 uses import() statements for lazy loading players. Seems like codesandbox doesn't handle them very well.

Relevant issues:

Not an ideal solution but I guess it would work if you used the built file in dist instead? eg:

https://unpkg.com/react-player@2.1.0/dist/ReactPlayer.js

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

2 participants