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

nodeExecTask "successful" when it can't find the module #473

Open
JasonGore opened this issue Oct 13, 2020 · 0 comments
Open

nodeExecTask "successful" when it can't find the module #473

JasonGore opened this issue Oct 13, 2020 · 0 comments

Comments

@JasonGore
Copy link
Member

I was trying nodeExecTask in a situation where it shouldn't have worked and discovered it doesn't error when the module it tries to run doesn't exist:

$ just-scripts wacbuild
[2:34:45 PM] ■ started 'wacbuild'
[2:34:45 PM] ■ [TS] Using these compilerOptions: {"module":"commonjs","target":"es2017","moduleResolution":"node"}
[2:34:45 PM] ■ [TS] Using transpileOnly mode
[2:34:45 PM] ■ Executing [TS]: C:\Program Files\nodejs\node.exe -r D:\git\ooui\dev\node_modules\ts-node\register\index.js ./wacBuiasdfldRun.ts
[2:34:45 PM] ■ finished 'wacbuild' in 0.01s
Error: Cannot find module 'D:\git\ooui\dev\packages\wac-box3\wacBuiasdfldRun.ts'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
Done in 1.84s.

image

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

1 participant