Quantcast
Channel: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & AnimatePresenceProps'.ts(2559) - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & AnimatePresenceProps'.ts(2559)

$
0
0

This error just started happening randomly:

enter image description here

However if I make a wrapping component that spreads props and introduces children there's no error:

const WorkingVersion = (props: {id?: number}) => <SimpleComponent {...props}><div>hello</div></SimpleComponent>

This issue also does not happen on codesandbox for typescript making me think it's a specific issue on my machine.

I tried reverting to the last working version however it somehow didn't fix the issue I was having.

What should I be looking for that could cause this error to popup?


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images