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

Usage in typescript without esModuleInterop #541

Closed
some-user123 opened this issue Feb 27, 2021 · 5 comments
Closed

Usage in typescript without esModuleInterop #541

some-user123 opened this issue Feb 27, 2021 · 5 comments

Comments

@some-user123
Copy link

Hi,

I'm trying to use this nice library in a typescript project.

I can only get it to work using esModuleInterop. Is there a way to import it without changing my compiler options?

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Mar 30, 2021
@some-user123
Copy link
Author

Still an issue for me...

@github-actions github-actions bot closed this as completed Apr 5, 2021
@some-user123
Copy link
Author

This bot seems broken...

@p3drosola
Copy link

I agree, this is an ongoing issue that could be easily resolved.

@akphi
Copy link
Contributor

akphi commented Jul 8, 2022

@krisk I want to bring up the point that now Typescript has supported esm style imports, esModuleInterop is not supported in this mode, it's worth if we do something like lukeed/clsx#44 - I have given it an attempt but not quite sure how I can modify the d.ts file accordingly.

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

No branches or pull requests

3 participants