swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

error:'ngx-charts-bar-vertical' is not a known element #1876

Open Co-Maheshh opened 1 year ago

Co-Maheshh commented 1 year ago

i am using angular 13 version and i have added ngx-chart version \ 12. but i am getting this error like

core.mjs:14683 NG0304: 'ngx-charts-bar-vertical' is not a known element: 1. If 'ngx-charts-bar-vertical' is an Angular component, then verify that it is part of this module. 2. If 'ngx-charts-bar-vertical' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.


i have added ngxchartxmodule but still getting this error ?

LeonadoRivaldo commented 1 year ago

I'm having this issue, but im using angular 14

LeonadoRivaldo commented 1 year ago

any fixes?

LeonadoRivaldo commented 1 year ago

@Co-Maheshh if youre using lazy-modules, see if on ur route u're loading the right module, not the routing module, coz i was with this problem, but my route was pointing to the routing-module by acident so the router wasn't loading the module itself only the routes,