Skip to content

Is it possible to import a mix of CommonJS-only deps and ESM-only deps? #1560

Answered by imballinst
imballinst asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind, turns out I needed to also include the .js extensions when importing: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#im-having-problems-with-esm-and-typescript. Closing this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imballinst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant