typescript + unified = possible? (ESM not been supported by ts-node) #140
Answered
by
remcohaszing
Ziv-Barber
asked this question in
Q&A
-
It's working but I'm getting this warning: (node:19160) ExperimentalWarning: CommonJS module myCode.ts is loading ES Module node_modules\.pnpm\xast-util-from-xml@4.0.0\node_modules\xast-util-from-xml\index.js using require() |
Beta Was this translation helpful? Give feedback.
Answered by
remcohaszing
Jan 8, 2025
Replies: 2 comments
-
Hi, that's unrelated to unified and simply your choice of tooling. From the ts-node readme:
So perhaps you're using an outdated version of ts-node and/or Node.js. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I recommend replacing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Ziv-Barber
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recommend replacing
ts-node
withtsx
, or using Node.js’ experimental builtin TypeScript runner.