uni-helper / uni-typed

为 uni-app、uni-cloud 和 uni-ui 组件提供 TypeScript 类型支持
MIT License
32 stars 3 forks source link

[Vue] Plugin "@uni-helper/uni-app-types/volar-plugin (2)" API version incompatible, expected "2" but got "1". #11

Closed 1940879828 closed 2 months ago

1940879828 commented 2 months ago

描述问题

Error when running npm run type-check: $ npm run type-check

uni-preset-vue@0.0.0 type-check vue-tsc --noEmit

[Vue] Plugin "@uni-helper/uni-app-types/volar-plugin (2)" API version incompatible, expected "2" but got "1". But it does not seem to affect the normal trial of the function

复现

package.json: { "name": "hi_bao", "version": "0.1.0", "scripts": { "dev:app": "uni -p app", "dev:app-android": "uni -p app-android", "dev:app-ios": "uni -p app-ios", "dev:custom": "uni -p", "dev:h5": "uni", "dev:h5:ssr": "uni --ssr", "dev:mp-alipay": "uni -p mp-alipay", "dev:mp-baidu": "uni -p mp-baidu", "dev:mp-jd": "uni -p mp-jd", "dev:mp-kuaishou": "uni -p mp-kuaishou", "dev:mp-lark": "uni -p mp-lark", "dev:mp-qq": "uni -p mp-qq", "dev:mp-toutiao": "uni -p mp-toutiao", "dev:mp-weixin": "uni -p mp-weixin", "dev:mp-xhs": "uni -p mp-xhs", "dev:quickapp-webview": "uni -p quickapp-webview", "dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei", "dev:quickapp-webview-union": "uni -p quickapp-webview-union", "build:app": "uni build -p app", "build:app-android": "uni build -p app-android", "build:app-ios": "uni build -p app-ios", "build:custom": "uni build -p", "build:h5": "uni build", "build:h5:ssr": "uni build --ssr", "build:mp-alipay": "uni build -p mp-alipay", "build:mp-baidu": "uni build -p mp-baidu", "build:mp-jd": "uni build -p mp-jd", "build:mp-kuaishou": "uni build -p mp-kuaishou", "build:mp-lark": "uni build -p mp-lark", "build:mp-qq": "uni build -p mp-qq", "build:mp-toutiao": "uni build -p mp-toutiao", "build:mp-weixin": "uni build -p mp-weixin", "build:mp-xhs": "uni build -p mp-xhs", "build:quickapp-webview": "uni build -p quickapp-webview", "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei", "build:quickapp-webview-union": "uni build -p quickapp-webview-union", "type-check": "vue-tsc --noEmit", "mock": "node mock/server.mjs" }, "dependencies": { "@dcloudio/uni-app": "3.0.0-4000820240401001", "@dcloudio/uni-app-plus": "3.0.0-4000820240401001", "@dcloudio/uni-components": "3.0.0-4000820240401001", "@dcloudio/uni-h5": "3.0.0-4000820240401001", "@dcloudio/uni-mp-alipay": "3.0.0-4000820240401001", "@dcloudio/uni-mp-baidu": "3.0.0-4000820240401001", "@dcloudio/uni-mp-jd": "3.0.0-4000820240401001", "@dcloudio/uni-mp-kuaishou": "3.0.0-4000820240401001", "@dcloudio/uni-mp-lark": "3.0.0-4000820240401001", "@dcloudio/uni-mp-qq": "3.0.0-4000820240401001", "@dcloudio/uni-mp-toutiao": "3.0.0-4000820240401001", "@dcloudio/uni-mp-weixin": "3.0.0-4000820240401001", "@dcloudio/uni-mp-xhs": "3.0.0-4000820240401001", "@dcloudio/uni-quickapp-webview": "3.0.0-4000820240401001", "@types/numeral": "^2.0.5", "@types/qs": "^6.9.15", "@uni-helper/uni-app-types": "^0.5.13", "axios": "^1.7.2", "cors": "^2.8.5", "dayjs": "^1.11.11", "express": "^4.19.2", "mockjs": "^1.1.0", "numeral": "^2.0.6", "qs": "^6.12.1", "vue": "^3.3.11", "vue-i18n": "^9.1.9" }, "devDependencies": { "@dcloudio/types": "^3.3.2", "@dcloudio/uni-automator": "3.0.0-4000820240401001", "@dcloudio/uni-cli-shared": "3.0.0-4000820240401001", "@dcloudio/uni-stacktracey": "3.0.0-4000820240401001", "@dcloudio/vite-plugin-uni": "3.0.0-4000820240401001", "@vue/runtime-core": "^3.3.11", "@vue/tsconfig": "^0.5.1", "typescript": "^5.5.2", "vite": "^4.5.3", "vue-tsc": "^2.0.22" } } tsconfig.json: { "extends": "@vue/tsconfig/tsconfig.json", "compilerOptions": { "sourceMap": true, "baseUrl": ".", "paths": { "@/": [ "./src/" ] }, "lib": [ "esnext", "dom" ], "types": ["@dcloudio/types", "@uni-helper/uni-app-types"] }, "vueCompilerOptions": { "plugins": ["@uni-helper/uni-app-types/volar-plugin"] }, "include": [ "src//*.ts", "src/*/.d.ts", "src//*.tsx", "src/*/.vue" ] }

系统信息

windows11

使用的包管理器

npm

核对

Skiyee commented 2 months ago

please make sure you are using the new version, now is v1.0.0-alpha.3