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

TS2307: Cannot find module react-transition-progress or its corresponding type declarations. #5

Open
gregorybolkenstijn opened this issue Apr 9, 2024 · 1 comment

Comments

@gregorybolkenstijn
Copy link

I have a Typescript project and when importing anything from 'react-transition-progress', I get this error:

TS2307: Cannot find module react-transition-progress or its corresponding type declarations. There are types at [...]/node_modules/react-transition-progress/dist/es/index.d.mts, but this result could not be resolved under your current moduleResolution setting. Consider updating to node16, nodenext, or bundler

I followed the suggested changes to tsconfig.json for moduleResolution, but that led to more issues. I could not find a new configuration that did not trigger new issues. We've never encountered this issue with other packages in our project, any advice on how to solve this would be great. I've added a @ts-expect-error to now as the code works fine.

@timneutkens
Copy link
Member

I'd love to give advice but this issue does not include a reproduction, can you add one? The included example application runs fine with TypeScript.

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