You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using concurrently in a project with module set to node16 (or nodeNext) in tsconfig.json, the default export of concurrently is not correct:
importconcurrentlyfrom'concurrently'concurrently();// This expression is not callable. Type 'typeof import("node_modules/concurrently/dist/src/index")' has no call signatures.
I believe this is due to the fact that the types field points to dist/src/index.d.ts for both the require and import fields in exports, which is not going to work since the files are two different module systems. You can see more compatibility issues here.
I'm happy to send in a PR to fix this in a few days, but I just wanted to throw the issue out there for awareness.
The text was updated successfully, but these errors were encountered:
Hey! I believe this might've been fixed by #456, it's just that it hasn't been released yet.
It's been a while since I played with the type definitions, so at least https://arethetypeswrong.github.io gives all ✅ with the output of npm pack.
When using
concurrently
in a project withmodule
set tonode16
(ornodeNext
) intsconfig.json
, the default export ofconcurrently
is not correct:I believe this is due to the fact that the
types
field points todist/src/index.d.ts
for both therequire
andimport
fields inexports
, which is not going to work since the files are two different module systems. You can see more compatibility issues here.I'm happy to send in a PR to fix this in a few days, but I just wanted to throw the issue out there for awareness.
The text was updated successfully, but these errors were encountered: