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
RoyRao2333
changed the title
Error when exec executables in monorepo submodules' .bin
Error when exec executables in monorepo submodule's .binJul 11, 2023
pnpm version:
v8.6.7 and v7.33.3
Code to reproduce the issue:
I'm configuring a CLI package using Commander.js, zx and gitlab-cli to make merge requests.
Let's say I have a project structure below:
In my root's
package.json
:In
client
'spackage.json
:Expected behavior:
Should successfully make merge requests with no errors.
Actual behavior:
If I run my custom command in my CLI
that is running with zx
and it actually runs
pnpm --filter=client exec lab merge-request -b myBranch -t master -m myBranch
The
gitlab-cli
works fine but I got an error at the end of the output:Dont know where did the
undefined
come from since I didn't log anything in my code. And this error gave me no reason why it failed.But if I install
gitlab-cli
in the root'spackage.json
and runthen everything is fine.
I got above errors using pnpm v8.6.7, but if I use v7.33.3, the error looks different:
Additional information:
May be relevant to #4481
The text was updated successfully, but these errors were encountered: