react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

Type error with figma widget jsx element

Open mattp0123 opened this issue 2 years ago • 0 comments

Does react-hot-toast modify the JSX element type?

const { AutoLayout } = figma.widget

function MyWidget() {
  return (
    <AutoLayout
      // ...
    />
  )
}

image

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": {
      "~/*": ["*"]
    }
  }
}

mattp0123 avatar Oct 11 '23 06:10 mattp0123