Possible bug ? executing nx with tsc add "--" suffix which cause tsc to fail #10162
Replies: 3 comments
-
Same here. I just cannot use tsc anymore. |
Beta Was this translation helpful? Give feedback.
-
Any news on this? tsc is still unusable... |
Beta Was this translation helpful? Give feedback.
-
pnpm 7 changelong:
https://github.com/pnpm/pnpm/blob/main/packages/pnpm/CHANGELOG.md I think nx needs to drop the injected '--' pnpm used to need prior to 7.0 when using pnpm 7+ I just hit this and then downgraded pnpm to 6.X to resolve until fixed. |
Beta Was this translation helpful? Give feedback.
-
Hello, i made a little boiler plate with node and typescript, i encounter a problem when lauching my build.
i'm using pnpm (7.0.0).
nx (13.10.3)
typescript (4.6.4)
root package.json
:libs/foo/package.json
:nx.json
when i ran in the libs/foo build with
pnpm build
it work as expected, now when i'm trying to build with nx i get this error:$ pnpm build:foo
got the same error when i try with
pnpm build
it seems that nx had a "--" suffix at the end of the command line but tsc will emit an error if you had this suffix
tsc --
seems the same with my test with jest (but
jest --
is a valid command):Actually when i'm adding another command on my script, it's working:
"build": "pnpm clean && tsc && echo 'done'"
should i open an issue about that ?
Beta Was this translation helpful? Give feedback.
All reactions