uiuniversal / ngu-carousel

Angular Universal carousel
https://ngu-carousel.netlify.app
MIT License
332 stars 105 forks source link

NguCarousel Error with Version 7+ #510

Open rohit-cactus opened 2 months ago

rohit-cactus commented 2 months ago

Issue Report: NguCarousel Error with Version 7+

Description

When using NguCarouselModule in our Angular application, we encounter errors when upgrading from version 6 to version 7 or above. The error manifests as follows:

Error Screenshot:

Screenshot 2024-09-04 at 6 26 22 PM

Current Behavior:

Version Information:

Steps to Reproduce

  1. Import NguCarouselModule into your Angular module: import { NguCarouselModule } from '@ngu/carousel';

  2. Add NguCarouselModule to the imports array of your Angular module.

  3. Use the ngu-carousel component in the template with [inputs] and [dataSource]: <ngu-carousel [inputs]="carouselConfig" [dataSource]="items">

  4. Observe the error in the console.

Expected Behavior

The ngu-carousel component should work correctly with [inputs] and [dataSource] without requiring CUSTOM_ELEMENTS_SCHEMA.

Actual Behavior

Errors are thrown, and the ngu-carousel component does not render correctly when using version 7 or above.

Workaround

Adding CUSTOM_ELEMENTS_SCHEMA to the NgModule schemas resolves the issue but is not a desirable solution.

Additional Information

Request

Please investigate the compatibility issue with NguCarousel versions 7 and above and provide guidance or a fix to ensure that the component works without requiring CUSTOM_ELEMENTS_SCHEMA.