arlowhite / angular-plotly-react

Angular plotly.js component library using Plotly.react() API
MIT License
1 stars 0 forks source link

ng: 'plotly' is not a known element #1

Open arlowhite opened 6 years ago

arlowhite commented 6 years ago

This error is displayed on <plotly>

ng: 'plotly' is not a known element: 1. If 'plotly' is an Angular component, then verify that it is part of this module. 2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

Developers can suppress this in their AppModule:
schemas: [ NO_ERRORS_SCHEMA ]

However, putting it in PlotlyModule doesn't work. Need to research this more. https://angular.io/guide/styleguide#custom-prefix-for-components Seems like the correct solution is to use a dash in the selector, but that requires renaming the selector. Maybe <plotly-react>?

Arvind-puthucode commented 2 years ago

hey any solutions regarding this i have the same issue