Type error with figma widget jsx element
mattp0123 opened this issue · comments
mattpeng commented
Does react-hot-toast
modify the JSX element type?
const { AutoLayout } = figma.widget
function MyWidget() {
return (
<AutoLayout
// ...
/>
)
}
My tsconfig:
{
"compilerOptions": {
"moduleResolution": "Bundler",
"jsx": "react",
"jsxFactory": "figma.widget.h",
"jsxFragmentFactory": "figma.widget.Fragment",
"target": "es6",
"strict": true,
"skipLibCheck": true,
"typeRoots": ["node_modules/@figma", "node_modules/@types"],
"baseUrl": "src",
"paths": {
"~/*": ["*"]
}
}
}