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
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.
The text was updated successfully, but these errors were encountered:
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
formoduleResolution
, 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.The text was updated successfully, but these errors were encountered: