Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
450
igx-category-y-axis and igx-numeric-x-axis throw error - "is not a known element:"
posted

Following works fine - 

<igx-data-chart #chart
width="100%"
height="300px">
<igx-category-x-axis name="xAxis"></igx-category-x-axis>
</igx-data-chart>

Following throws error - 

Uncaught Error: Template parse errors:
'igx-category-y-axis' is not a known element:
1. If 'igx-category-y-axis' is an Angular component, then verify that it is part of this module.
2. If 'igx-category-y-axis' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
width="100%"
height="300px">
[ERROR ->]<igx-category-y-axis name="xAxis"></igx-category-y-axis>

</igx-data-chart>

<igx-data-chart #chart
width="100%"
height="300px">
<igx-category-y-axis name="xAxis"></igx-category-y-axis>

</igx-data-chart>

We get same error with same error with igx-numeric-x-axis