Open gpanganiban-extreme opened 2 years ago
I have the same error. Angular 15.2.9. Standalone component.
Can't bind to 'initOpts' since it isn't a known property of 'div'. Can't bind to 'options' since it isn't a known property of 'div'. Can't bind to 'theme' since it isn't a known property of 'div'.
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [CommonModule, NgxEchartsModule],
providers: [
{
provide: NGX_ECHARTS_CONFIG,
useFactory: () => ({ echarts: () => import('echarts') }),
},
],
Same issue by using angular module in Angular 17
import { NgxEchartsModule } from 'ngx-echarts'; @NgModule({ imports: [ ..., NgxEchartsModule.forRoot({ echarts: () => import('echarts') }) ], }) export class AppModule {}
I have custom component library that is using ngx-echarts. When I build the library (ng build --project my-library), I get error like this:
`
3 [options]="chartOptions"
`
Here is the component .ts and .html file:
And the .html file: