-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Open
Labels
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
I have a Stencil project where I consume @ionic/core
. Starting with 8.2.9, the types for ion-*
elements in the TSX files are no longer available. If I downgrade to 8.2.8, all is good.
When hovering in VS Code:
- 8.2.8:
(property) LocalJSX.IntrinsicElements["ion-item"]: LocalJSX.IonItem & JSXBase.HTMLAttributes<HTMLIonItemElement>
- 8.2.9:
(index) IntrinsicElements[string]: any
And the project won't compile because of Parameter 'ev' implicitly has an 'any' type.
on all event handlers.
Expected Behavior
Types should be available.
Steps to Reproduce
npm init stencil
- Select
ionic-pwa [community]
- cd into project,
npm install
- Inspect elements in VS Code. (
IntrinsicElements[string]: any
) npm i @ionic/core@8.2.8
- Inspect elements in VS Code. (
LocalJSX.IntrinsicElements["ion-..."]:
) npm i @ionic/core@8.2.9
- Inspect elements in VS Code. (
IntrinsicElements[string]: any
)
Code Reproduction URL
Ionic Info
npm 10.9.2
node 23.11.0
@ionic/core 8.2.9
@stencil/core 4.36.3
Additional Information
No response