项目场景:
vue3.0项目中引入组件 报错
问题描述
vue3.0项目中引入组件 报错 The span element doesn’t mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children.
解决方案:
在jsconfig 或者tsconfig中配置
{
“include”: [ “./src/” ],
“compilerOptions”: {
“noUnusedLocals”: false,//消除报错
/*****/
}