"Cannot find module or its corresponding type declarations" with typescript >=5.6 #1049
Open
3 tasks done
Labels
bug
something not go good
Is there an existing issue for this?
Have you read the
CONTRIBUTING
guide on posting bugs, andCODE_OF_CONDUCT
?This issue exists in the latest tap version
Description
I noticed this behavior in tap when using the built-in
@tapjs/typescript
plugin, but I was able to follow it down to@isaacs/ts-node-temp-fork-for-pr-2009
. So I don't think this is a bug intap
but didn't know where else to report it. The upstreamts-node
doesn't work in other ways so I was not able to test with that.When trying to run tap on a workspace where its test files import from another workspace,
@isaacs/ts-node-temp-fork-for-pr-2009
is unable to find the workspace. Runningtsc
directly on the workspace's test files does work.Reproduction
run.sh
When running that script with typescript@5.5 vs 5.6,
tsc
is able to compile but@isaacs/ts-node-temp-fork-for-pr-2009
is not. Here's the output on my system:./run.sh 5.5
+ npm i added 20 packages, and audited 23 packages in 827ms found 0 vulnerabilities + npm ls typescript @lukekarrys/root@1.0.0 /Users/lukekarrys/Desktop/isaacs-tsnode-tap-error ├─┬ @isaacs/ts-node-temp-fork-for-pr-2009@10.9.7 │ └── typescript@5.5.4 deduped └── typescript@5.5.4 + ./node_modules/.bin/tsc --version Version 5.5.4 + ./node_modules/.bin/tsc --project pkg-b/tsconfig.json --noEmit + node --import=./node_modules/@isaacs/ts-node-temp-fork-for-pr-2009/import.mjs ./pkg-b/index.ts a
./run.sh 5.6
Environment
The text was updated successfully, but these errors were encountered: