首页 > 其他分享 >React报错之Property does not exist on type 'JSX.IntrinsicElements'

React报错之Property does not exist on type 'JSX.IntrinsicElements'

时间:2022-08-30 22:47:19浏览次数:54  
标签:npm react IntrinsicElements App React 报错 组件 JSX

正文从这开始~

总览

当组件名称以小写字母开头时,会导致"Property does not exist on type 'JSX.IntrinsicElements'"错误。为了解决该错误,确保组件名称总是以大写字母开头,安装React声明文件并重启你的开发服务器。

property-does-not-exist-on-type-jsx-intrinsicelements.png

这里有个示例用来展示错误是如何发生的。

// App.tsx

// 

标签:npm,react,IntrinsicElements,App,React,报错,组件,JSX
From: https://www.cnblogs.com/chuckQu/p/16641151.html

相关文章