'Text' cannot be used as a JSX component

Hey there,

I migrating my widget to use TS and Webpack and React and im having an issue that results in the following TS error

‘Text’ cannot be used as a JSX component.
Its return type ‘FigmaDeclarativeNode’ is not a valid JSX element.
Type ‘undefined’ is not assignable to type ‘Element | null’.ts(2786)

Happy to provide any other info.

2 Likes

Same problem

Same issue here!