Due to specific requirements, I have made some customizations to the Ionic
component: range
. I changed the class name of the component from Range
to CustomRange
(with selector: custom-range
):
https://github.com/ionic-team/ionic/blob/master/core/src/components/range/range.tsx
To achieve this, I copied and pasted the files from:
https://github.com/ionic-team/ionic/tree/master/core/src/components/range
and placed them inside the directory:
/src/components/custom-range
Subsequently, I imported the module: CustomRange
into the declarations in the file: app.module.ts
.
I also corrected the references in the import
statements within the file: range.tsx
, which appeared to be correct.
However, I am encountering errors such as:
[ts] Cannot find name 'React'.
(property) JSX.IntrinsicElements.slot: JSXElements.SlotAttributes
As shown in the following image:
https://i.sstatic.net/Z8JS5.png
Does anyone have any suggestions on how to resolve this issue?
Thank you!