timolins / react-hot-toast

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

Type error with figma widget jsx element #314

Open mattp0123 opened 1 year ago

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