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 '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'. #406

Open
uffou opened this issue Mar 12, 2023 · 1 comment · May be fixed by #408
Open

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'. #406

uffou opened this issue Mar 12, 2023 · 1 comment · May be fixed by #408

Comments

@uffou
Copy link

uffou commented Mar 12, 2023

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.

Here is the diff that solved my problem:

diff --git a/node_modules/react-images/index.d.ts b/node_modules/react-images/index.d.ts
index 3f98829..34b376f 100755
--- a/node_modules/react-images/index.d.ts
+++ b/node_modules/react-images/index.d.ts
@@ -138,7 +138,7 @@ declare const Carousel: React.ComponentType<CarouselProps>
 
 declare const Modal: React.ComponentType<ModalProps>
 
-declare const ModalGateway: React.ComponentType<{}>
+declare const ModalGateway: React.ComponentType<{children:any}>
 
 export default Carousel
 export { Modal, ModalGateway }

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants