ionic-team / stencil-ds-output-targets

These are output targets that can be added to Stencil for React and Angular.
https://stenciljs.com
MIT License
249 stars 115 forks source link

stencil-store Bindings error #109

Open ashika01 opened 4 years ago

ashika01 commented 4 years ago

I am using @stencil/store in my codebase. While trying to build, the react binding package fails with bunch of errors.

Here is a sample of stencil store usage, (pretty much the sample in docs)

const { state, onChange } = createStore({
  clicks: 0,
});

onChange('clicks', value => {
  state.clicks = value ** 2;
});

export default state;

Usage in component,

import state from './connect-util';

@Component({
  tag: 'connect-provider',
  shadow: true,
})
export class ConnectProvider {
  @Element() host: HTMLElement;
  @Prop() msg = 'default';

  render() {
    return (
      <Host>
        <div>From the inside: {state}</div>
      </Host>
    );
  }
}

Errors I am seeing on my build,

Screen Shot 2020-08-12 at 12 11 58 AM

And quite a few similar to this.

adrianiy commented 3 years ago

Facing the same issue here

christian-bromann commented 4 hours ago

If anyone has a resolution to this, we would appreciate any sort of contributions. Thanks!

ionitron-bot[bot] commented 4 hours ago

This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.

If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort. Thank you!