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

Problems when importing from react image crop using moduleResolution: "nodenext" in tsconfig.json #601

Closed
alvarogfn opened this issue Sep 6, 2024 · 2 comments

Comments

@alvarogfn
Copy link
Contributor

I'm building a component library, and I've encountered problems importing react-image-crop when using NodeNext module resolution. Can anyone help me find a solution?

image

I uploaded a version with the problem on Stackblitz:
https://stackblitz.com/edit/react-image-crop-node-next?file=src%2FApp.tsx

@alvarogfn
Copy link
Contributor Author

alvarogfn commented Sep 6, 2024

I was able to resolve this problem by making this change (gambiarra):
image
I'll make a local patch, thanks!

@dominictobias
Copy link
Owner

dominictobias commented Sep 9, 2024

Thanks for the PR, fixed via #602 in 11.0.7

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

No branches or pull requests

2 participants