Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno task fails with Module not found #296

Open
SebastienGllmt opened this issue Dec 6, 2024 · 1 comment
Open

deno task fails with Module not found #296

SebastienGllmt opened this issue Dec 6, 2024 · 1 comment

Comments

@SebastienGllmt
Copy link

SebastienGllmt commented Dec 6, 2024

For some reason, I'm not able to get this library working with deno task despite other things like deno eval working.

const child = await $`deno task <my-task>`;

fails with the following error

error: Module not found "file:///home/git/my-project/task".
error: Uncaught (in promise) Error: Exited with code: 1
    at CommandChild.pipedStdoutBuffer (file:///home/git/my-project/node_modules/.deno/[email protected]/node_modules/dax-sh/esm/mod.js:7950:19)
    at Object.runMicrotasks (ext:core/01_core.js:683:26)
    at processTicksAndRejections (ext:deno_node/_next_tick.ts:59:10)
    at runNextTicks (ext:deno_node/_next_tick.ts:76:3)
    at eventLoopTick (ext:core/01_core.js:182:21)

This is on Deno 2.1.3 with dax 0.42.0

If I use Deno.command, it works properly

@dsherret
Copy link
Owner

dsherret commented Jan 4, 2025

Can you post a full reproduction with a deno.json? It works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants