You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a custom library to reuse components among several applications, and I want to use ngx-datetime-range-picker in one of my library modules. The problem is, when I import my library module into one of the main application's lazy loaded module, it triggers the following error : ERR_NGX_DATETIME_RANGE_PICKER: NgxDatetimeRangePickerModule is already loaded. Import it in the AppModule only.
Is there a way to correctly import ngx-datetime-range-picker in a reusable module without forRoot ? (maybe by implementing a forChild method) ?
The text was updated successfully, but these errors were encountered:
You can create a small wrapper module in application code-base (example: ngx-datetime-range-picker-wrapper.module) and then import it using ./ngx-datetime-range-picker-wrapper.module#NgxDatetimeRangePickerModule. I didn't get enough time to try this myself but please let me know if this works for you.
I've created a custom library to reuse components among several applications, and I want to use ngx-datetime-range-picker in one of my library modules. The problem is, when I import my library module into one of the main application's lazy loaded module, it triggers the following error : ERR_NGX_DATETIME_RANGE_PICKER: NgxDatetimeRangePickerModule is already loaded. Import it in the AppModule only.
Is there a way to correctly import ngx-datetime-range-picker in a reusable module without forRoot ? (maybe by implementing a forChild method) ?
The text was updated successfully, but these errors were encountered: