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 I run nx run analyze:run - it says "> NX Successfully ran target run for project analyze" however the actual file is not being run. I can confirm this by throwing in the file, logging to a file, etc.
I believe it's because in #16924 in node.impl.ts there's no handling of non-zero exit codes in task.childProcess.once('exit', (code) => { handler.
After som debugging, I found out that it is trying to run main.js file - the default one.
Previously before #16924 the file to run was determined by NX_FILE_TO_RUN: event.outfile.
Now I have to add "outputFileName": "src/index.js", to my build target options which isn't very nice.
Expected Behavior
When running js file fails - it shows the error
I don't have to specify outputFileName in build target in order to run it (also main.js doesn't seem like a good default because even if I had main.ts - I'd still have to add src/ prefix)
Current Behavior
I have this:
When I run
nx run analyze:run
- it says "> NX Successfully ran target run for project analyze" however the actual file is not being run. I can confirm this by throwing in the file, logging to a file, etc.I believe it's because in #16924 in
node.impl.ts
there's no handling of non-zero exit codes intask.childProcess.once('exit', (code) => {
handler.After som debugging, I found out that it is trying to run
main.js
file - the default one.Previously before #16924 the file to run was determined by
NX_FILE_TO_RUN: event.outfile
.Now I have to add
"outputFileName": "src/index.js",
to mybuild
target options which isn't very nice.Expected Behavior
outputFileName
inbuild
target in order to run it (alsomain.js
doesn't seem like a good default because even if I hadmain.ts
- I'd still have to addsrc/
prefix)GitHub Repo
No response
Steps to Reproduce
See above
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: