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

Cannot compile in ReactJs #487

Closed
VapiSoft opened this issue Jun 20, 2020 · 8 comments · Fixed by #501
Closed

Cannot compile in ReactJs #487

VapiSoft opened this issue Jun 20, 2020 · 8 comments · Fixed by #501
Labels

Comments

@VapiSoft
Copy link

After Install I get an error
Error: Can't resolve 'videojs' in 'C:\wamp64\www\mesibaba\node_modules\videojs-record\dist'
My code import lines are:
import 'video.js/dist/video-js.min.css'; import videojs from 'video.js'; import 'videojs-record/dist/css/videojs.record.css'; import Record from 'videojs-record/dist/videojs.record.js';

@thijstriemstra
Copy link
Member

Please make sure webpack is configured properly. Follow this guide: https://collab-project.github.io/videojs-record/#/frameworks/react

@VapiSoft
Copy link
Author

It is vary strange to change the "scripts" section that worked up till now (and I am afraid that it will cause other changes).
But I tried it?
And I get the following error:
Error: Cannot find module 'C:\wamp64\www\mesibaba/config-overrides'

@thijstriemstra
Copy link
Member

@VapiSoft did you follow the guide and install react-app-rewired?

npm install react-app-rewired --save-dev

@VapiSoft
Copy link
Author

I did every thing, then it told me upgrade to wepack-server 8, and then it didn't want to compile because something was wron with the 'presets', and I couldn't solve it.
Isn't there a simple solution to make it find the videojs ?
When I change the packge.json so many things break!!!
I aleady spent too many hours trying to fix it.
So now I am trying to use "react-video-recorder".
It works, but but its UI is bad.

@thijstriemstra
Copy link
Member

I am sorry to hear that. React is just not easy to customize, I hate that framework so can't help you. I know the guide shows how to create a working React application so either use that or find a different way to include video.js (and it's plugins).

@VapiSoft
Copy link
Author

VapiSoft commented Jun 21, 2020 via email

@thijstriemstra
Copy link
Member

@VapiSoft I found the issue and a solution, stay tuned.

@thijstriemstra
Copy link
Member

Fixed in v4.1.0.

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

Successfully merging a pull request may close this issue.

2 participants