由于某些特定原因,我需要对Ionic组件进行一些自定义:range,将组件类名称从更改Range为CustomRange(使用选择器:)custom-range:
https://github.com/ionic-team/ionic/blob/master/core/src/components/range/range.tsx
为此,我将文件复制/粘贴到:
https://github.com/ionic-team/ionic/tree/master/core/src/components/range
目录内:
/src/components/custom-range
然后我将 module:CustomRange导入到 file: 的声明中app.module.ts。
还修复了import文件内部语句的引用:range.tsx这很好。
但我的问题是我收到如下错误:
[ts] Cannot find name 'React'.
(property) JSX.IntrinsicElements.slot: JSXElements.SlotAttributes
如下图所示:
你知道我该如何解决这个问题吗?
谢谢!
