question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR Can't bind to 'options' since it isn't a known property of 'nvd3'

See original GitHub issue

when I use it in my angular seed at the app.component.html level, everything seems to be working. I did some refactoring as application grew, and has multiple modules now. If I use <nvd3 [options]="options" [data]="data"></nvd3> in any of the feature modules, I get the error

Unhandled Promise rejection: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'nvd3'. ("
<md-card>
   
    <nvd3 [ERROR ->][options]="options" [data]="data"></nvd3>
   
</md-card>
"): HomeComponent@23:10
Can't bind to 'data' since it isn't a known property of 'nvd3'. ("
<md-card>
   
    <nvd3 [options]="options" [ERROR ->][data]="data"></nvd3>
   
</md-card>
"): HomeComponent@23:30
'nvd3' is not a known element:
1. If 'nvd3' is an Angular component, then verify that it is part of this module.
2. If 'nvd3' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("
<md-card>

nvd3 is declared in declarations in the app.module level. I want it to be declared at the app module level, so that all my feature modules can use it.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

3reactions
anprosscommented, Jul 30, 2017

had the same problem during testing, you need to Import the Module in your test:

TestBed.configureTestingModule({
    imports: [NvD3Module],
...
2reactions
sarahmorleycommented, Jul 3, 2017

I get this error when unit testing using Jasmine. Any one else have this problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

d3.js - 'nvd3' is not a known element: 1. If 'nvd3' is an Angular ...
i am getting below error when i try to run the page. below is the error. NodeInvocationException: Template parse errors: Can't bind to...
Read more >
ng2-nvd3 - Bountysource
Unhandled Promise rejection: Template parse errors: Can't bind to 'options' since it isn't a known property of 'nvd3'. (" <md-card> <nvd3 [ERROR ...
Read more >
Angular-nvD3 Quick start - GitHub Pages
Basic usage. Inject nvd3 directive into angular module, set up some chart options and push some data to the controller:
Read more >
angular/flex-layout@13.0.0-beta.36 - You.com
... react app typescript Can't bind to 'formGroup' since it isn't a known property of 'form git@github.com: Permission denied (publickey). fatal: Could not...
Read more >
Hosting Angular App On Clouding.io - Code Handbook
You'll be using ng2-nvd3 library for creating bar charts in Angular ... need to bind the chart data and chart options to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found