"Text" inside "Main" master slide not working
TimPietrusky opened this issue · comments
NERDDISCO commented
Issue description
When using the Text
component in the Main
master slide I get this error:
Uncaught 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.
Steps to reproduce
- Use the
Main
master slide - Add the
Text
element like this:
<A>
<Text>This is some text</Text>
</A>
Versions
- yarn: 1.5.1
- node 6.9.1
- dekk: 1.0.0
Gregor Adams commented
Can you paste a link to the original code or paste a snippet?
It might be that you mixed default with named exports
import Text from '@dekk/text'
// But
import {Title} from '@dekk/text'
Gregor Adams commented
I just tested it. please see my previous comment. It's probably something similar.