I am using Bryntum scheduler and Gantt in the same page so when I register BryntumSchedulerModule and BryntumGanttModule in the same app.module.ts, I get the following error:
"Multiple components match with the same tagname "
Please let me know ,what is the solution to this issue ?
Any chance to see the code? Error description here said it may be because of using same selectors https://angular.io/errors/NG0300
But we have to see your code to run and debug it.
I am not able to attach the zip file over here , getting error file size too large. Please let me know the alternate way , how do I share the runnable code with you?
The problem is that both @bryntum/gantt-angular and @bryntum/scheduler-angular include components with the same tags. If they are used as modules in app.module.ts then these names clash (we prepare a solution for next major release of our components).
For now, remove one of the modules from app.module.ts:
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppErrorHandler } from './error.handler';
import { AppComponent } from './app.component';
import { BryntumGanttModule } from '@bryntum/gantt-angular';
// import { BryntumSchedulerModule } from '@bryntum/scheduler-angular';
@NgModule({
declarations : [
AppComponent
],
imports : [
BrowserModule,
BryntumGanttModule,
// BryntumSchedulerModule
],
providers : [{ provide : ErrorHandler, useClass : AppErrorHandler }],
bootstrap : [AppComponent]
})
export class AppModule { }
If you then need a component from the other package, import it individually the same way as AppComponent.
I tried that approach but doesn't seem to be working . When I import the component in app.module.ts. I get the error as
"Cannot declare BryntumGanttComponent in an NgModule as it is not part of current compilation."