typescript 问题
Last updated on November 22, 2024 pm
🧙 Questions
ts常见错误
☄️ Ideas
TS7026: JSX element implicitly has type ‘any’ because no interface ‘JSX.IntrinsicElements’ exists.
TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
解决方案
vim tsconfig.json
{
// 使用any类型不报错
"noImplicitAny": false
}
TS2307: Cannot find module ‘react’ or its corresponding type declarations.
TS2307: Cannot find module 'react' or its corresponding type declarations.
解决方案
🔗 Links
typescript 问题
https://ispong.isxcode.com/vue/typescript/typescript 问题/