1、在tsconfig.json 文件中
关闭严格模式
{
"compilerOptions": {
"strict": false
}
}
2、发现报错JSX 元素隐式具有类型 “any“,因为不存在接口 “JSX.IntrinsicElements“消失,但报错
JSX 元素类型“ElButton”不具有任何构造签名或调用签名 依旧存在
安装 @types/react 后解决
npm install @types/react
1、在tsconfig.json 文件中
关闭严格模式
{
"compilerOptions": {
"strict": false
}
}
2、发现报错JSX 元素隐式具有类型 “any“,因为不存在接口 “JSX.IntrinsicElements“消失,但报错
安装 @types/react 后解决
npm install @types/react