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.

Unable to resolve some modules: "videojs"

See original GitHub issue

Description

require(“videojs”) in videojs-record code results in exception during meteor application startup. Manually changing it to require(“video.js”) fixes this problem. Not sure how it should work in general and why it is not correct module name in the first place.

Steps to reproduce

Create meteor app

meteor npm install video.js
meteor npm install recordrtc
meteor npm install videojs-record

run meteor

Results

Expected

No exceptions

Error output

Unable to resolve some modules:
"videojs" in
/project/node_modules/videojs-record/dist/videojs.record.min.js
(web.browser)
If you notice problems related to these missing modules, consider running:
  meteor npm install --save videojs

Additional Information

versions

meteor 1.8 video.js 7.2.2 recordrtc 5.4.8 videojs-record: 2.4.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ignlcommented, Nov 10, 2018

Why do we need this alias at all?

0reactions
thijstriemstracommented, Apr 25, 2020

@AdnanAwan124 you sound like insane with a request like that. You paying me? Why would I spent my saturday doing that for some random person? Unbelievable. And hijjacking a random ticket, wtf…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video JS in Angular 9 - live video - 'Can't resolve videojs ...
I think the problem is your webpack.alias doesn't get affected. On the other hand, your webpack.config.js is not applied yet.
Read more >
Video.js Blog
The complete CHANGELOG is available, but here are some highlights: No longer transpiled into ES5 for ... Your browser can't play this video....
Read more >
videojs-css - npm
Start using videojs-css in your project by running `npm i videojs-css`. ... via npm and require the plugin as you would any other...
Read more >
How to fix error TS7016: Could not find a declaration file for ...
How to fix error TS7016: Could not find a declaration file for module 'XYZ'. 'file.js' implicitly has an 'any' type. Photo by Jason...
Read more >
Failed to resolve module specifier axios. - You.com
The script with the broken import will not do any logging. In general, look for scripts which import by module name / specifier...
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