3

After updating to swiper v9.0.3 it showing

`'swiper-container' is not a known element:

  1. If 'swiper-container' is an Angular component, then verify that it is included in the '@Component.imports' of this component.
  2. If 'swiper-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.`

Was trying to update swiper in my angular project

Riju Sharma
  • 31
  • 1
  • 3

1 Answers1

1

Swiper Angular components have been removed in v9. If you want to use v9, you need to change your Angular components to web components.

You can start with adding CUSTOM_ELEMENTS_SCHEMA to your app module's schema.

https://swiperjs.com/migration-guide-v9#swiper-angular

Saige
  • 11
  • 2