'RecordRTC' camelcase problem on webpack build
See original GitHub issueDescription
I’m getting an error about RecordRTC dependency on case-sensitive system like Linux
Steps to reproduce
Run a simple configured webpack
Results
Expected
Webpack should make a build
Actual
Error “Can’t resolve ‘RecordRTC’” received
Error output
ERROR in ./node_modules/videojs-record/dist/videojs.record.js Module not found: Error: Can’t resolve ‘RecordRTC’ in ‘/var/www/html/project_name/node_modules/videojs-record/dist’ @ ./node_modules/videojs-record/dist/videojs.record.js 10:47-67 @ ./path/to/my/code/file.js
Additional Information
I tried to rename ‘RecordRTC’ to ‘recordrtc’ (all lowercase) in ./node_modules/videojs-record/dist/videojs.record.js in all 4 entries and it works perfect. Then I’ve added alias RecordRTC: 'recordrtc'
to my webpack config and it does a job. But it seems everywhere all npm modules are lowercased so this alias is some kind of a workaround here
versions
videojs
3.5.1
OSes
Ubuntu
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
No, I don’t think it will. It’s just there so webpack does not include these libraries in the videojs-record library itself.
So, I forked out the repo, and removed the externals section in the build config, and I did not have to add aliases in my webpack for the build to go through. (Unfortunately, our org has a policy of not allowing aliases in webpack configs)
Still, have not ascertained if that is all I need to do, will have a clearer picture later.
So, I just wanted to know, If removing such externals would have any negative impact on the videojs-record library and its functioning at all .