stencil-ds-plugins-demo icon indicating copy to clipboard operation
stencil-ds-plugins-demo copied to clipboard

Property 'subscribe' does not exist on type 'EventEmitter<SlideValue>'.

Open reginaldoboeke opened this issue 2 years ago • 0 comments

When using the web components generated using @stencil/[email protected], in an Angular 12.2.0, I get the following error in props of type @Event()

Property 'subscribe' does not exist on type 'EventEmitter<SlideValue>'.

Screen Shot 2021-08-17 at 22 27 29

Using the same components in an Angular 8.2.14, everything works perfectly. It is noteworthy that even in version 12.2.0 of Angular, if I go to EventEmitter and add a prop called subscribe: any;, the events work normally. Appears to be a problem related to typing only.

Screen Shot 2021-08-17 at 22 29 44

Here is an Angular repository with the mentioned problem. It's consuming a web component library that I just published for testing. https://github.com/reginaldoboeke/angular-stencil

Is this issue already known?

reginaldoboeke avatar Aug 18 '21 01:08 reginaldoboeke