赞
踩
{ "extends": "@vue/tsconfig/tsconfig.json", "compilerOptions": { "sourceMap": true, "baseUrl": ".", "paths": { "@/*": ["./src/*"] }, "lib": ["esnext", "dom"], "types": [ "@dcloudio/types", "@uni-helper/uni-app-types" ], "ignoreDeprecations": "5.0" }, "vueCompilerOptions": { // experimentalRuntimeMode 已废弃,现调整为 nativeTags,请升级 Volar 插件至最新版本 // "nativeTags": ["block", "component", "template", "slot"] "plugins": ["@uni-helper/uni-app-types/volar-plugin"] }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] }
参考文档:
1、安装@uni-helper/uni-app-types之后模板代码报错
2、解决tsconfig.json文件中最外层大括号红线报错Option ‘importsNotUsedAsValues’ is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption ‘“ignoreDeprecations”: “5.0”’ to silence this error. Use ‘verbatimModuleSyntax’ instead.ts
@uni-helper/uni-app-types官网:https://uni-helper.js.org/uni-app-types ↩︎
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。