Open maxaster opened 8 years ago
@maxaster after update to angular2-highcharts@0.4.1
to use highcharts-more
you must import it like this:
const Highcharts = require('highcharts');
require('highcharts/highcharts-more')(Highcharts);
And i use SystemJs, to work import i change import 'highcharts'
toimport 'highcharts/highcharts.src.js'
(for highcharts@5.0.2
). But i dont know how it must on Webpack.
@maxaster I added webpack example for 0.4.1 https://github.com/gevgeny/angular2-highcharts#installation
Let me know if it works for you
Thanks @Sfairet and @gevgeny for your responses !
@Sfairet, I tried your proposition but it's change nothing for me.
@gevgeny, I 'm trying your version but I can't make this import :
import * as HighchartsMore from 'highcharts/highcharts-more';
Webstorm tell me that the file 'highcharts-more' can not be resolved.
I check in the folder _nodemodule/@types/highcharts/ and there is only highstock.d.ts.
There is one thing that I don't understand. How my build can be work locally, on my computer, and no on my distant server... very strange. Sorry guys but this error make me so mad
@maxaster ok, sorry, i haven't experience with webpack
@maxaster ignore what webstorm says. What does webpack say ?
go to project directory and run "npm install highcharts"
Hi guys,
I have an issue at the compilation when i launch gulp build which is :
However, i can see that angular2-highcharts is installed during the npm install (with Highcharts module)
For information i use Webpack. My vendor.js have these lines :
And in my .ts file i have :
I use Jenkins by the way. In my local environment the build works, but in the distant server the error occurs.
And i have no errors in my console when i run the app locally
Thanks !!