-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
Description
I am using ion-slides in a new component.
carousel.component.html
<ion-slide>
<h1>Slide 1</h1>
</ion-slide>
<ion-slide>
<h1>Slide 2</h1>
</ion-slide>
<ion-slide>
<h1>Slide 3</h1>
</ion-slide>
</ion-slides>
Just before adding ion-slides my component seems to work fine but as soon as I ass above lines. I get below error:
'ion-slide' is not a known element:
1. If 'ion-slide' is an Angular component, then verify that it is part of this module.
2. If 'ion-slide' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("<ion-slides pager="true" >
[ERROR ->]<ion-slide>
<h1>Slide 1</h1>
</ion-slide>
"): ng:///SharedModule/CarouselComponent.html@1:2
'ion-slide' is not a known element:
1. If 'ion-slide' is an Angular component, then verify that it is part of this module.
2. If 'ion-slide' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
<h1>Slide 1</h1>
</ion-slide>
[ERROR ->]<ion-slide>
<h1>Slide 2</h1>
</ion-slide>
Also I have created a Stack Overflow question for this issue
https://stackoverflow.com/questions/54309846/ionic-4-ion-slide-is-not-a-known-element/54335516#54335516