react-html5-video-editor icon indicating copy to clipboard operation
react-html5-video-editor copied to clipboard

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

Open tspecht opened this issue 8 years ago • 1 comments

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)

tspecht avatar Jan 20 '17 11:01 tspecht

@tspecht same here Please help me out

mrjosshi avatar Nov 10 '17 05:11 mrjosshi