evgenity / react-html5-video-editor

React / Redux video component with crop. Powers demo video editor at
https://crop-video-online.com
GNU General Public License v3.0
154 stars 29 forks source link

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

Open tspecht opened 7 years ago

tspecht commented 7 years ago

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)
mrjosshi commented 6 years ago

@tspecht same here Please help me out