ASSERTION ERROR: Type passed in is not ComponentType, it does not have 'ɵcmp' property

I’ve authored some web components in Stencil and am now looking to use these in an Ionic/Angular application.

I have followed the Angular integration guide for using Stencil components but am running into the following error when attempting to dynamically create components using Angular’s resolveComponentFactory and createComponent methods:

ASSERTION ERROR: Type passed in is not ComponentType, it does not have ‘ɵcmp’ property

I am using

  • Angular 9
  • Ionic 5
  • Stencil 2.0.1.

This error appears to relate to the Ivy rendering engine in Angular but I cannot find any documentation on how to overcome this when attempting to dynamically generate the Stencil components as a result of passing these into Angular’s createComponent method.

Has anyone encountered this and/or know of possible solutions/workarounds?

Thanks in advance for all replies/assistance that developers out there may be able to provide.