Skip to content

"Error: Cannot find module 'videojs'" when bundling using ES6/Babel and VideoJS 5 #343

@gpmcadamold

Description

@gpmcadamold

I'm currently trying to compile ES6 using Babel and Browserify. The VideoJS blog post suggests something like this should work:

import videojs from 'video.js';
import 'videojs-youtube';

However I'm getting the following error during bundling:

[00:36:38] Browserify Error { [Error: Cannot find module 'videojs' from '/Users/path/to/my/node_modules/videojs-youtube/dist']

Is the VideoJS YouTube plugin compatible with ES6/Babel in the way suggested by the VideoJS blog post?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions