Open birnayt opened 2 years ago
Oh, I already found the answer =)
Para mim funcionou como abaixo:
import { index as RichText } from "vtex.rich-text"
export default function olaMundo() {
return (
<div>
<RichText text="Olá mundo" />
</div>
)
}
Para mim funcionou como abaixo:
import { index as RichText } from "vtex.rich-text" export default function olaMundo() { return ( <div> <RichText text="Olá mundo" /> </div> ) }
aqui tbm finalmente
vlw @fabionumai !
@eltonleao e @fabionumai salvaramm!! Estava passando pelo problema
JSX element type 'RichText' does not have any construct or call signatures.ts(2604)
o import { index as RichText } resolveu tudo, haha. GRATO!!!
What are you trying to accomplish? Please describe. Hi, how can I import the RichText component?
I tried this:
import RichText from "vtex.rich-text"
But i received this error:
I saw the rich-text code and found that this component is being used with an index.tsx and just one export default, so I don't know how to export without causing the preventFullImport error.
Thanks!