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,
I use the examples described in the tutorial. I get this typescript error on all components.
Typescript error is;
List Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & ListProps'.
Create Type '{ children: Element; saveButtonProps: Partial<{ href: string; target?: string | undefined; onClick?: MouseEventHandler<HTMLElement> | undefined; } & BaseButtonProps & Omit<...> & { ...; } & Omit<...>> & { ...; }; }' is not assignable to type 'IntrinsicAttributes & CreateProps'. Property 'children' does not exist on type 'IntrinsicAttributes & CreateProps'.
Edit Type '{ children: Element; saveButtonProps: Partial<{ href: string; target?: string | undefined; onClick?: MouseEventHandler<HTMLElement> | undefined; } & BaseButtonProps & Omit<...> & { ...; } & Omit<...>> & { ...; }; }' is not assignable to type 'IntrinsicAttributes & EditProps'. Property 'children' does not exist on type 'IntrinsicAttributes & EditProps'.
Show Type '{ children: Element[]; isLoading: boolean; }' is not assignable to type 'IntrinsicAttributes & ShowProps'. Property 'children' does not exist on type 'IntrinsicAttributes & ShowProps'.
When I downgrade to React In 17.0.2, this time I am getting error in code. import ReactDOM from 'react-dom/client'; in index.tsx
React is being imported with its latest version
create-react-app installs the code accordingly.
This detail should be explained in the documents until the transition to React@18
Hi,
I use the examples described in the tutorial. I get this typescript error on all components.
Typescript error is;
List
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & ListProps'.
Create
Type '{ children: Element; saveButtonProps: Partial<{ href: string; target?: string | undefined; onClick?: MouseEventHandler<HTMLElement> | undefined; } & BaseButtonProps & Omit<...> & { ...; } & Omit<...>> & { ...; }; }' is not assignable to type 'IntrinsicAttributes & CreateProps'. Property 'children' does not exist on type 'IntrinsicAttributes & CreateProps'.
Edit
Type '{ children: Element; saveButtonProps: Partial<{ href: string; target?: string | undefined; onClick?: MouseEventHandler<HTMLElement> | undefined; } & BaseButtonProps & Omit<...> & { ...; } & Omit<...>> & { ...; }; }' is not assignable to type 'IntrinsicAttributes & EditProps'. Property 'children' does not exist on type 'IntrinsicAttributes & EditProps'.
Show
Type '{ children: Element[]; isLoading: boolean; }' is not assignable to type 'IntrinsicAttributes & ShowProps'. Property 'children' does not exist on type 'IntrinsicAttributes & ShowProps'.
I use
The text was updated successfully, but these errors were encountered: