Closed throrin19 closed 7 months ago
Hey! So apparently there's a lengthy discussion here about this issue: https://github.com/microsoft/TypeScript/issues/50058
It's coming from the use of module: "Nodenext"
in your tsconfig.json.
There are a couple of hacks suggested in there that you could try, but none that is pretty. It seems that what typescript is doing is right for your compiler options. Concurrently is a commonjs module, hacked to look like a native ESM module.
Hello,
I have a problem using concurrently (and others modules) in my project after migrate from CJS to full ESM. I have the error TS2349 when I try to call
concurrently
function. But, In VSCode, the definition is correctly loaded on CTRL+click :/This is my config :
And my example code :
He is a screen on my VSCode :![image](https://github.com/open-cli-tools/concurrently/assets/1394778/159f52fa-0782-460f-8ee4-a8c057e8fe07)
I don't know how to do to fix that. I think my problem is with typescript, but I don't understand how to fix that :/