-
Notifications
You must be signed in to change notification settings - Fork 58
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
Property 'plugins' does not exist on type 'IntrinsicAttributes & GrapesjsReactProps & { children?: ReactNode; } #58
Comments
It seems like there is no way now to add plugins? |
It might be the type declaration bug only. The code should work. |
It's probably because you are using this code with typescript and this prop is not defined in the type definition, so the react/typescript is not allowing your conde ran. |
For anyone who is using typescript, just add |
Found a way to resolve this, by doing this: ` function PageCanvas() { export default PageCanvas |
Any idea what this would be about?
ERROR in libs/grapes/src/lib/grapes.tsx:13:7
TS2322: Type '{ id: string; plugins: string[]; }' is not assignable to type 'IntrinsicAttributes & GrapesjsReactProps & { children?: ReactNode; }'.
Property 'plugins' does not exist on type 'IntrinsicAttributes & GrapesjsReactProps & { children?: ReactNode; }'.
11 | <GrapesjsReact
12 | id='grapesjs-react'
Here's the code - it works fine if I remove the plugins attribute:
The text was updated successfully, but these errors were encountered: