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

v5.4.0 "Cannot find module '@sindresorhus/is' or its corresponding type declarations" #179

Closed
Kamahl19 opened this issue May 31, 2023 · 4 comments · Fixed by #180
Closed

Comments

@Kamahl19
Copy link

After upgrading to 5.4.0 I am getting "Cannot find module '@sindresorhus/is' or its corresponding type declarations"

@tomasz-zablocki-ziegert
Copy link

The same issue here, didn't happen on 5.3.0

@sindresorhus
Copy link
Owner

The problem is your TypeScript config. Make sure you'are on TS 5 or later and use this config: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm

@tomasz-zablocki-ziegert
Copy link

Thank you very much

@vtgn
Copy link

vtgn commented May 21, 2024

The problem is your TypeScript config. Make sure you'are on TS 5 or later and use this config: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm

Shame... it's not easy on my project to transform all my commonJS modules into ESM... so I must keep an old version of @sindresorhus/is for the moment. :'(

EDIT:
@sindresorhus Is there a solution to be able to build your lib in CommonJS modules? It is disappointing for not being able to upgrade your lib version anymore in our CommonJS modules.

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

Successfully merging a pull request may close this issue.

4 participants