I am using Angular 7 in combination with some web components. I have an angular component in a shared module, which contains a web component. Thus, I
import '@mystuff/component-name'
and use
schemas: [CUSTOM_ELEMENTS_SCHEMA]
However, when testing the app, I get an
ReferenceError: customElements is not defined
This also happens, if I don't use the web component at all, but only have the import in the shared module.
How can I fix this? Thanks!
Aucun commentaire:
Enregistrer un commentaire