stencil/core: 3.0.0
angular/core: 15.2.0
I have the same problem as mentioned. I followed the integration guide found in the Stencil documentation (Angular Integration with Stencil | Stencil). I build the stencil library, but when I run the angular project (ng serve) I get the error:
./dist/component-library/fesm2020/component-library.mjs:1015:13-33 - Error: export 'defineCustomElements' (imported as 'defineCustomElements') was not found in 
'stencil-library/loader' (module has no exports)
My component-library.module.ts file looks like this:
import { APP_INITIALIZER, NgModule } from '@angular/core';
import { defineCustomElements } from 'stencil-library/loader';
import { DIRECTIVES } from './stencil-generated';
@NgModule({
  declarations: [...DIRECTIVES],
  exports: [...DIRECTIVES],
  providers: [
    {
      provide: APP_INITIALIZER,
      useFactory: () => {
        return defineCustomElements();
      },
    },
  ]
})
export class ComponentLibraryModule { }
I really do not know what happens, any ideas to solve this error?
Thanks.