-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chart is unknown chart type #86
Comments
Duplicate of #83 |
well, I don't use systemjs, and I'm doing everything like in the sample (code-wise). If anyone has a solution to make this working with ionic2RC, I'd appreciate some help. |
besides, I believe the module is loaded since the error is raised by the module itself.... |
well for the record, I've solved it:
needs to be before
in index.html |
@graphicsxp did you get this working for angular2-highcharts or @progress/kendo-angular-charts? |
angular2-highcharts. I'm testing kendo-angular-charts right now actually. It works great when I run it with liveserver but no luck with building for android using aot compiler. This is because kendo-angular is missing the metadata.json file required by aot angular2 compiler. Can't change that since kendo is not opensource.... |
@graphicsxp I finally got it working too! there is no chart.js on index.html when using angular2-highcharts w/ ionic2RC, so my solution was to modify rollup.config.js: commonjs({
include: [
'node_modules/angular2-highcharts/**',
'node_modules/highcharts/highstock.src.js',
'node_modules/highcharts/highcharts-more.src.js'
],
namedExports: {
'node_modules/angular2-highcharts/index.js': ['ChartModule', 'Highcharts'],
'node_modules/highcharts/highstock.src.js': ['Highcharts'],
'node_modules/highcharts/highcharts-more.src.js': ['HighchartsMore']
}
}) .. then, to fix build I added this at the bottom of @types/highcharts/index.d.ts: declare var HighchartsMore: (H: HighchartsStatic) => HighchartsStatic;
declare module "highcharts/highcharts-more.src" {
export = HighchartsMore;
} Here's the component code: import { Highcharts } from 'angular2-highcharts';
import HighchartsMore from 'highcharts/highcharts-more.src';
HighchartsMore( Highcharts ); |
Hi all, it always gives me the error: Here my app.module.ts:
My sistemjs.config.js:
And, inside my component:
What am I missing? |
I guess I had a similar issue like yours and finally found a solution. Just post it here in case it could help. The problem is that the So, please try to change your app.module.ts as follow:
|
Hi @HuangJian ERROR in C:/Users/Josue Meraz/Documents/2017/Udemy/Angular 2 - De cero a experto/Practicas/1. HighchartsApp/src/app/app.module.ts (6,10): Module '"C:/Users/Josue Meraz/Documents/2017/Udemy/Angular 2 - De cero a experto/Practicas/1. HighchartsApp/node_modules/@types/highcharts/index"' has no exported member 'Highcharts'. |
Hi @jmerazhn You don't need to import the
If you need the
|
Hi @howtimeflies-io |
Hi @jmerazhn It seems you are not loading the Highcharts library externally. So Is there any error when following the angular2-highcharts instruction?
|
@howtimeflies-io |
Just add a single line bellow the
|
Thank you @howtimeflies-io |
Hi @howtimeflies-io |
Hi @jmerazhn I have no idea how to fix this issue since it did not happen in my project. |
I am facing the same problem. Can't bind to 'options' since it isn't a known property of 'chart'. (" Could any one please help me to solve this error? |
I solved this with doing following declare let require: any; // outside of NgModule() ChartModule.forRoot(require('highcharts')) |
i am using ng-cli 1.6 and have same issue now, any one can help it ? |
After going through a lot of troubles trying to import the angular2-highcharts module in my ionic2 application, I'm now having this error at runtime:
basically it is raised from initChart.js :
the highchartsService is an empty object.
Any idea why ?
The text was updated successfully, but these errors were encountered: