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

Invalid cjs types #195

Closed
KaelWD opened this issue Nov 5, 2024 · 2 comments · Fixed by #209
Closed

Invalid cjs types #195

KaelWD opened this issue Nov 5, 2024 · 2 comments · Fixed by #209

Comments

@KaelWD
Copy link

KaelWD commented Nov 5, 2024

https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseESM.md

@Garfield550
Copy link

Maybe same issue.

// file.cts

import synckit = require('synckit')

Module 'synckit' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead. ts(1471)

@JounQin
Copy link
Member

JounQin commented Mar 19, 2025

Would you like to raise a PR instead?

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.

3 participants