针对你遇到的 /bin/sh: vue-tsc: command not found 错误,我们可以按照以下步骤进行排查和解决: 确认是否已安装 vue-tsc: vue-tsc 是Vue 3 项目中用于类型检查的工具,它是 TypeScript 的一个封装,专门用于 Vue 文件。如果你在使用 Vue 3 和 TypeScript,并且希望进行类型检查,那么需要确保已经安装了 vue-tsc...
(node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [ '/xxx/frontend/node_modules/.pnpm/vue-tsc@0.33.3_typescript@4.6.2/...
The command runs successfully, I just get the errors above. I get the same errors with Volar in VS Code in the "Vue Semantic Server" Output tab. I just started usingvue-tscfrom the command line today and noticed this, so it may not be a recent issue. Reproduction https://github.com/...
fix(language-server): show component meta command not workingBreaking changesSimplify JSX.IntrinsicElements type inference for better TS performance (#3259) Update @vue-expected-error to @vue-expect-error (https://github.com/vuejs/language-tools/pull/3215#issuecomment-1560355284)1.7...
expected. 116setvalue(value: T|null|undefined);~node_modules/@vueuse/shared/index.d.ts:117:1 - error TS1128: Declaration or statement expected. 117 };~Found 6 errors. error Command failed withexitcode 2. info Visit https://yarnpkg.com/en/docs/cli/runfordocumentation about this command....
This is likely not portable. A type annotation is necessary. 9 <script setup lang="ts"> 10 import { ref } from 'vue' ~~~ ... 18 }) ~~ 19 </script> Found 1 error in src/demo.vue:9 ELIFECYCLE Command failed with exit code 1.About No description, website, or...
Thanks for the report. vue-tsc not supportcompositeoption yet, you need to remove"composite": true,on tsconfig. And than you can usevue-tsc --noEmit --project tsconfig.prod.jsoncommand run type-checking. (You can't usereferencesoption because it's depend oncomposite) ...
fix(language-server): show component meta command not working Breaking changes Simplify JSX.IntrinsicElements type inference for better TS performance (#3259) Update @vue-expected-error to @vue-expect-error (https://github.com/vuejs/language-tools/pull/3215#issuecomment-1560355284) v1.7.9 Comp...
I didn't receive any output running this command, it may have been failing. I asked a co-worker to run it and they had the same result of no output I'm not sure what you're describing here. Are you suggesting running the type checker more granularly on the codebase until the memory...
ERROR(vue-tsc) Type '{msg1:string;}' is not assignable to type 'IntrinsicAttributes&Partial<{}>&Omit<Readonly<ExtractPropTypes<{msg: { type:StringConstructor;required:true; };}>>&VNodeProps&AllowedComponentProps&ComponentCustomProps, never>'. ...