question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'RecordRTC' camelcase problem on webpack build

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thijstriemstracommented, Oct 15, 2019

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 .

No, I don’t think it will. It’s just there so webpack does not include these libraries in the videojs-record library itself.

0reactions
retrocausalcommented, Oct 15, 2019

Is there a downside to not externalising libraries

ehm, I don’t think so, can you elaborate?

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 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

kebab-case to camelCase via localsConvention in css-loader ...
I got this fixed by exportLocalsConvention in modules section: { loader: 'css-loader', options: { modules: { localIdentName: ...
Read more >
Open Source Used In Assist 3.1 - Cisco
This document contains licenses and notices for open source software used in this product.
Read more >
Experts for camelcase lodash - Linknovate
Linknovate, experts for camelcase lodash. Peek into the next innovations and research in camelcase lodash, and the companies and universities behind them.
Read more >
Speech-to-Text streaming demo in React - createIT
Easly make speech to text streaming demo in React step by step. ASR - automatic speech recognition – uses advanced machine learning ...
Read more >
Incident Response - Hybrid Analysis
Guest System: Windows 7 32 bit, Professional, 6.1 (build 7601), Service Pack 1. Report generated by Falcon Sandbox v8.30 © Hybrid Analysis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found