rtk icon indicating copy to clipboard operation
rtk copied to clipboard

【Bug】rtk npx vue-tsc --noEmit(MacOS)

Open sacrtap opened this issue 7 months ago • 3 comments

Problem confirmation After detailed troubleshooting, I confirmed the problem: Root cause There are bugs in the processing of vue tsc by rtk npx: Command Result Reason npx vue-tsc --version ✅ Normal native npx direct execution package rtk npx vue-tsc --version ✅ Normal rtk correct proxy npx vue-tsc --noEmit ✅ Normal native npx passes parameters to vue tsc rtk npx vue-tsc --noEmit ❌ An error is reported. The rtk internally erroneously executes vue tsc as an npm script The error message npm error Missing script: "vue tsc" clearly indicates that the rtk npx calls npm run vue tsc internally instead of npx vue tsc.

sacrtap avatar Apr 13 '26 14:04 sacrtap

[w] wshm · Automated triage by AI

🔍 Automated Triage

🐛 Category bug
🟠 Priority high
🎯 Confidence 88%

Summary

rtk npx misroutes commands with flags like --noEmit, incorrectly calling npm run vue-tsc instead of npx vue-tsc --noEmit; likely a parsing bug in the npx rewrite/proxy logic.

This looks like a simple fix. Only repo maintainers can trigger auto-fix.


Triaged automatically by wshm · This is an automated analysis, not a human review.

pszymkowiak avatar Apr 13 '26 14:04 pszymkowiak

Confirmed on Linux (CachyOS) as well.

npx vue-tsc --noEmit works. rtk npx vue-tsc --version works. rtk npx vue-tsc --noEmit fails with npm error Missing script: "vue-tsc".

I’d like to take this as my first contribution.

NEOFIT-dev avatar Apr 14 '26 07:04 NEOFIT-dev

This should be fixed by https://github.com/rtk-ai/rtk/pull/1458

KuSh avatar Apr 26 '26 01:04 KuSh