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
Originally posted by emilbillberg February 18, 2025
Hi,
I am trying to run deno test with a file that imports minio-js package 8.0.4 but I get following error indicating it cannot find a type file:
error: Uncaught Error: Unable to load /Users/<username>/Library/Caches/deno/npm/registry.npmjs.org/minio/8.0.4/types/esm/minio.d.ts: No such file or directory (os error 2)
at Object.getSourceFile (ext:deno_tsc/99_main_compiler.js:621:28)
at findSourceFileWorker (ext:deno_tsc/00_typescript.js:126789:23)
at findSourceFile (ext:deno_tsc/00_typescript.js:126705:20)
at processImportedModules (ext:deno_tsc/00_typescript.js:127105:11)
at findSourceFileWorker (ext:deno_tsc/00_typescript.js:126854:7)
at findSourceFile (ext:deno_tsc/00_typescript.js:126705:20)
at processImportedModules (ext:deno_tsc/00_typescript.js:127105:11)
at findSourceFileWorker (ext:deno_tsc/00_typescript.js:126854:7)
at findSourceFile (ext:deno_tsc/00_typescript.js:126705:20)
at processImportedModules (ext:deno_tsc/00_typescript.js:127105:11)
How do I fix this? I can see there are some type files in another directory:
#27188 would change this to be a diagnostic, but maybe typescript resolution falls back to the non-types export condition if it fails and we should investigate if this works with plain tsc.
Discussed in #28163
Originally posted by emilbillberg February 18, 2025
Hi,
I am trying to run
deno test
with a file that imports minio-js package 8.0.4 but I get following error indicating it cannot find a type file:How do I fix this? I can see there are some type files in another directory:
The text was updated successfully, but these errors were encountered: