Since the move of HTMLAttributes to JSXBase was documented in BREAKING_CHANGES.md, there's one further bug.
JSXBase ist not exported by @stencil/core but @stencil/core/internal.
- import { JSXBase } from '@stencil/core';
+ import { JSXBase } from '@stencil/core/internal';
This should be documented or the export should be added.
Stencil version:
@stencil/[email protected]
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
You should never import JSXBase, this is by design a private API.
What's your use case?
Hi @manucorporat, it's described in the migration/breaking changes document
I'm using HTMLAttributes type and this is supposed to be part of JSXBase:
Now HTMLAttributes is part of JSXBase, exposed in @stencil/core:
I have this same issue. I have a lazy loaded component that has a placeholder property that takes an stencil component.
<lazy-component
placeholder={<p>Loading</p>}
/>
@Component({
tag: "lazy-component"
})
export class LazyComponent {
@Prop() placeholder: JSXBase.IntrinsicElements;
render() {
if(Status.Loading){
return this.placeholder;
}
return <p>Component</p>
}
}