Skip to content

type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in #8

@tspecht

Description

@tspecht

Hey guys,

I'm currently trying to use this module in my React app. However I can't get it to run although I followed the example in the Readme file exactly :/

I have the following in the top of my file:

require('react-html5-video-editor/dist/react-html5-video-editor.js');
import { RdxVideo } from 'react-html5-video-editor';

I then try to use the component like this:

<RdxVideo autoPlay loop muted>
// src going here
</RdxVideo>

I get the following errors in my browser console:

React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

In addition I'm seeing the following super weird error since I installed the component:

Uncaught TypeError: Cannot read property 'pageX' of undefined
    at getXY (interact.js:649)
    at getPageXY (interact.js:666)
    at setEventXY (interact.js:610)
    at Interaction.setEventXY (interact.js:1319)
    at Interaction.pointerMove (interact.js:1782)
    at HTMLDocument.eval (interact.js:3348)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions