须要在src文件下减少一个.d.ts文件
写入
declare module "*.vue" {import Vue from 'vue'export default Vue}
即可
JSX 元素隐式具备类型 "any",因为不存在接口 "JSX.IntrinsicElements"。ts(7026)
两个解决方案
在tsconfig.json不应用严格查看
{
"compilerOptions": {
"strict": false
}
}
或者加这个
{
"compilerOptions": {
"noImplicitAny": false, // 是否在表达式和申明上有隐含的any类型时报错
}
}
http://news.wemorefun.com/pre...