You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
thank you for providing this amazing tool. I having problems working with it.
When I simply try to follow the quick start from the given link from the read me, it simply fails.
Here are my steps:
npx --yes create-figma-plugin (select plugin/react-editor from the options) cd react-editor/ npm run watch
it fails with this error:
success Built in 0.124s
info Typechecking...
error TypeScript error
src/ui.tsx:30:10 - error TS2786: 'Editor' cannot be used as a JSX component.
Its type 'typeof Editor' is not a valid JSX element type.
Type 'typeof Editor' is not assignable to type 'ComponentClass<any, {}>'.
Types of property 'contextType' are incompatible.
Type 'import("/Users/alper/My-projects/react-editor/node_modules/@types/react/index").Context<any> | undefined' is not assignable to type 'preact.Context<any> | undefined'.
Type 'import("/Users/alper/My-projects/react-editor/node_modules/@types/react/index").Context<any>' is not assignable to type 'preact.Context<any>'.
Types of property 'Consumer' are incompatible.
Type 'import("/Users/alper/My-projects/react-editor/node_modules/@types/react/index").Consumer<any>' is not assignable to type 'preact.Consumer<any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RenderableProps<{ children: (value: any) => ComponentChildren; }, any>' is not assignable to type 'ConsumerProps<any>'.
Types of property 'children' are incompatible.
Type '((value: any) => ComponentChildren) & ComponentChildren' is not assignable to type '(value: any) => ReactNode'.
Type '((value: any) => ComponentChildren) & string' is not assignable to type '(value: any) => ReactNode'.
Type 'ComponentChildren' is not assignable to type 'ReactNode'.
Type 'bigint' is not assignable to type 'ReactNode'.
30 <Editor
~~~~~~
success Typechecked in 1.195s
What can be done to overcome this error?
thank you for your help in advance.
The text was updated successfully, but these errors were encountered:
Hi everyone,
thank you for providing this amazing tool. I having problems working with it.
When I simply try to follow the quick start from the given link from the read me, it simply fails.
Here are my steps:
npx --yes create-figma-plugin
(select plugin/react-editor from the options)cd react-editor/
npm run watch
it fails with this error:
What can be done to overcome this error?
thank you for your help in advance.
The text was updated successfully, but these errors were encountered: