ionic-team / stencil-ds-plugins-demo

This is a demo project using the stencil-ds-plugins.
MIT License
44 stars 20 forks source link

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

Open reginaldoboeke opened 3 years ago

reginaldoboeke commented 3 years ago

When using the web components generated using @stencil/angular-output-target@0.0.7, 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?