timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.73k stars 323 forks source link

Type error with figma widget jsx element #314

Open mattp0123 opened 12 months ago

mattp0123 commented 12 months ago

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