Stencil: JSXBase not exported from @stencil/core.

Created on 12 Jun 2019  路  3Comments  路  Source: ionic-team/stencil

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/

triage

All 3 comments

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>
  }
}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bekliev picture bekliev  路  3Comments

ryanmunger picture ryanmunger  路  3Comments

danschultz picture danschultz  路  3Comments

harshabonthu picture harshabonthu  路  3Comments

joewoodhouse picture joewoodhouse  路  3Comments