This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
在vue sfc中使用uni-app的标签时,产生如下的类型错误,请问下怎么解决? 完整报错信息如下:
package.json {
"dependencies": {
"@climblee/uv-ui": "^1.1.20",
"@dcloudio/uni-app": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-app-plus": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-components": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-h5": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-jd": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-mp-xhs": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-ui": "^1.5.5",
"crypto-js": "^4.2.0",
"long": "^5.2.3",
"nutui-uniapp": "^1.7.10",
"pinia": "2.0.36",
"vue": "3.4.27",
"vue-i18n": "9.6.2"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.1",
"@dcloudio/types": "3.4.8",
"@dcloudio/uni-automator": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4010520240507001",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4010520240507001",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4010520240507001",
"@iconify-json/carbon": "^1.1.35",
"@uni-helper/eslint-config": "^0.0.6",
"@uni-helper/uni-app-types": "^0.5.13",
"@uni-helper/uni-cloud-types": "^0.5.3",
"@uni-helper/uni-ui-types": "^0.5.15",
"@uni-helper/unocss-preset-uni": "^0.2.9",
"@uni-helper/vite-plugin-uni-pages": "^0.2.23",
"@vue/runtime-core": "3.4.27",
"eslint": "^9.5.0",
"eslint-plugin-format": "^0.1.2",
"mini-types": "^0.1.7",
"miniprogram-api-typings": "^3.12.2",
"sass": "1.64.2",
"typescript": "^5.4.5",
"unocss": "^0.58.5",
"unplugin-auto-import": "^0.17.6",
"vite": "5.2.8",
"vite-plugin-remove-console": "^2.2.0"
}
} tsconfig.json {
"compilerOptions": {
"lib": ["esnext", "dom"],
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "Bundler",
"paths": {
"@/*": ["./src/*"]
},
"types": [
"@dcloudio/types",
"miniprogram-api-typings",
"@uni-helper/uni-app-types",
"@uni-helper/uni-ui-types",
"nutui-uniapp/global.d.ts"
],
"allowJs": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
"src/**/*.vue",
],
"vueCompilerOptions": {
"nativeTags": ["block", "component", "template", "slot"]
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
ModyQyW
Jun 19, 2024
Replies: 1 comment
-
请根据README调整你的tsconfig.json。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ModyQyW
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请根据README调整你的tsconfig.json。