作为表达式调用时,无法解析类修饰器的签名。
The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.ts(1238)
页面也无法打开
解决方案:
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"experimentalDecorators": true,
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
人工智能学习网站
https://chat.xutongbao.top