I am following the instructions under Usage on this page
https://es.infragistics.com/products/ignite-ui-angular/angular/components/dock-manager
And I am getting the following error when my app builds
Here are the angular versions in my package.json dependencies section
Thinking that the angular version was the issue, I upgraded my app from 17.2.2 to 17.3.9, but I still get the error.
How do I resolve this issue?
Hi Walter,
Thank you for posting to Infragistics Community!
I have been looking into your question and what I can say is that there aren't any known issues regarding the compatibility of the mentioned Angular and igniteui-dockmanager versions. The only way I was able to reproduce the same error is in case the “IgcDockManagerComponent” is added to the imports array in the AppModule configuration.:
imports: [/* … */, IgcDockManagerComponent],
The dock manager should not be imported like this. Instead, the defineCustomElements method ought to be invoked:
import { defineCustomElements } from '@infragistics/igniteui-dockmanager/loader'; defineCustomElements(); @NgModule({ bootstrap: [AppComponent], //… })
Additionally, since the dock manager is a Web Component, a common caveat might be not adding the CUSTOM_ELEMENTS_SCHEMA to the module configuration:
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; @NgModule({ //.. schemas: [CUSTOM_ELEMENTS_SCHEMA] })
Please, do check your app for the mentioned configurations and keep me posted on your progress.
In case the suggestions do not work out for you, please, make sure to provide some additional details about your setup. Ideally, you could try to reproduce the error in an isolated app having the same dependencies and only the dock manager component. Thank you in advance for your cooperation.
Best regards,Bozhidara PachilovaSoftware Developer
Thanks Bozhidara,
I had done the configuration you suggested for defineCustomElements and CUSTOM_ELEMENTS_SCHEMA .
My issue was that I also had made this mistake:
>The only way I was able to reproduce the same error is in case the “IgcDockManagerComponent” is added to the imports array in the AppModule
All good now.