本文主要是介绍作为表达式调用时,无法解析类修饰器的签名。vue3+ts+vite,使用装饰器时报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
作为表达式调用时,无法解析类修饰器的签名。
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
这篇关于作为表达式调用时,无法解析类修饰器的签名。vue3+ts+vite,使用装饰器时报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!