Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error with figma widget jsx element #314

Open
mattp0123 opened this issue Oct 11, 2023 · 0 comments
Open

Type error with figma widget jsx element #314

mattp0123 opened this issue Oct 11, 2023 · 0 comments

Comments

@mattp0123
Copy link

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": {
      "~/*": ["*"]
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant