require(esm) and chai v5 #1656
-
Hi im using node 22.12 which has my tsconfig is as follows:
and im importing chai like this: the error i get is
am i supposed to do something special to get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
this is because typescript doesn't yet allow that'll be fixed once microsoft/TypeScript#60534 is resolved |
Beta Was this translation helpful? Give feedback.
this is because typescript doesn't yet allow
require(esm)
in commonjs projectsthat'll be fixed once microsoft/TypeScript#60534 is resolved