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.

Can't bind to 'chart' since it isn't a known property of 'div'.

See original GitHub issue

use demo in html: <div [chart]="chart"></div>

use version:
    "@angular/core": "4.3.2",
    "angular-highcharts": "4",
    "@types/highcharts": "^5.0.10",
    "highcharts": "^6.0.2",

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nirali-gacommented, Mar 6, 2018

Hello, In your angular App if you have submodules and inside that module’s component file if you are trying to implement any chart , you will get above error, but if you import same things and other code as you do in app.module.ts as mentioned in API doc and usage then your problem will get solved.I dont know this is ideal solution or not but I have done this and removed this code from main app.module.ts.

Hope this helps someone.

0reactions
ceborcommented, Nov 13, 2017

@th0g0th if you create a repo where this issue is reproducible i can take look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't bind to 'chart' since it isn't a known property of 'div' #69
I just installed angular-highcharts and highcharts, did everything that was documented to start basic chart. But I ma getting this error: ...
Read more >
Can't bind to 'options' since it isn't a known property of 'chart'
You can set import the HighChartsModule in the IonicPageModule in which it is used instead of the app.module.ts
Read more >
Common errors in Angular: Can't bind to since it isn't a known ...
Ever made an Angular application , opened your console and saw an error message similar to: “Can't bind to ngclass since it isn't...
Read more >
Can't bind to 'chartType' since it isn't a known property of
I'm trying to put a pie chart in my page using the mdb, but i receive: Can't bind to 'chartType' since it isn't...
Read more >
can't bind to 'options' since it isn't a known property of 'canvas'.
Normally, this error occurs when you missed some imports. Please add these line if missing: import { FormsModule, ReactiveFormsModule } ...
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