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

Error while running the demo #1

Closed
stphnrdmr opened this issue Aug 26, 2015 · 4 comments
Closed

Error while running the demo #1

stphnrdmr opened this issue Aug 26, 2015 · 4 comments

Comments

@stphnrdmr
Copy link

I executed all the commands as described in the README but the bundle.js won't be generated, the browser shows GET http://localhost:3000/static/bundle.js 404 (Not Found). I captured the output of npm start in this gist. Do you have any idea what I'm doing wrong?

@stphnrdmr
Copy link
Author

I just ran npm i imports-loader exports-loader whatwg-fetch --save, that lets me create the bundle.js file. Now when I click any of the buttons for loading a video I get: Uncaught TypeError: _players2.default.find is not a function in ReactPlayer.js?fd27:36

@cookpete
Copy link
Owner

Hi @stphnrdmr,

Looks like I need to add those packages to package.json. Thanks for spotting that.

As for your second error, I'm using Array.find which doesn't have great browser support yet, so I should probably polyfill that (or use something else). I'm using Chrome Canary 47 when testing this thing, which is admittedly rather bleeding edge.

cookpete added a commit that referenced this issue Aug 27, 2015
@cookpete
Copy link
Owner

Fixed in 0.0.4

@stphnrdmr
Copy link
Author

Now everything works fine! Thank you for this awesome project 😄

david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this issue Dec 23, 2018
david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this issue Dec 23, 2018
@mgw-sbex mgw-sbex mentioned this issue Jan 25, 2019
david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this issue May 23, 2020
david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this issue May 23, 2020
albanqoku added a commit to albanqoku/react-player that referenced this issue Feb 24, 2021
albanqoku added a commit to albanqoku/react-player that referenced this issue Feb 24, 2021
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this issue May 20, 2021
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this issue May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this issue Sep 9, 2022
webmiraclepro added a commit to webmiraclepro/video-player that referenced this issue Sep 9, 2022
philip-luther added a commit to philip-luther/react-player that referenced this issue Nov 22, 2024
philip-luther added a commit to philip-luther/react-player that referenced this issue Nov 22, 2024
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