dante2
dante2 copied to clipboard
Element type is invalid error when: import Dante from 'Dante2'
Thanks for the awesome work. Would appreciate your help!
Uncaught (in promise) Error: Element 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, or you might have mixed up default and named imports.
Check the render method of MediumEditor.
import React, { Fragment, Component } from 'react';
import Dante from 'Dante2'
class MediumEditor extends Component {
render() {
return (
<Dante />
)
}
}
export default MediumEditor
Which version are you using?
I've tried up to date version
Which version are you using? Do you install it as Dante2@next?
El sáb., 6 de oct. de 2018 13:07, Seunghun Sunmoon Lee < [email protected]> escribió:
I've tried up to date version
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/michelson/dante2/issues/131#issuecomment-427585659, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAuyBAPRlAD4U05bzBn2C-rY-qVT0shks5uiNVVgaJpZM4XLTYT .
I've tried both Dante2@next, "Dante2": "0.4.0", 0.5.0-rc5