angular2-highcharts: Typing Errors - to update with Highcharts 5

I have browsed through #69 and also other related issues, but apparently my webpack still complaints about the missing typings.

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\HighchartsService.d.ts                                                                           
(3,17): error TS2304: Cannot find name 'HighchartsStatic'.                                                                                                                          

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartEvent.d.ts                                                                                  
(4,14): error TS2304: Cannot find name 'HighchartsChartObject'.                                                                                                                     

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartEvent.d.ts                                                                                  
(4,38): error TS2304: Cannot find name 'HighchartsSeriesObject'.                                                                                                                    

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartEvent.d.ts                                                                                  
(4,63): error TS2304: Cannot find name 'HighchartsPointObject'.                                                                                                                     

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartEvent.d.ts                                                                                  
(4,87): error TS2304: Cannot find name 'HighchartsAxisObject'.                                                                                                                      

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartComponent.d.ts                                                                              
(12,26): error TS2304: Cannot find name 'HighchartsChartObject'.                                                                                                                    

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartComponent.d.ts                                                                              
(22,12): error TS2304: Cannot find name 'HighchartsChartObject'.                                                                                                                    

ERROR in C:\Repos\Tocco.Orion.Mothership.Cms\node_modules\angular2-highcharts\dist\ChartComponent.d.ts                                                                              
(28,14): error TS2304: Cannot find name 'HighchartsOptions'.                

Here is my webpack.config.js:

var sharedConfig = {
resolve: {
    extensions: ['', '.js', '.ts'],
},
output: {
    filename: '[name].js',
    publicPath: '/dist/' // Webpack dev middleware, if enabled, handles requests for this URL prefix
},
module: {
    loaders: [
        { test: /\.ts$/, include: /ClientApp/, loader: 'ts', query: { silent: true } },
        { test: /\.html$/, loader: 'raw' },
        { test: /\.css$/, loader: 'to-string!css' },
        { test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'file' },
        {
            test: /\.(sass|scss)$/,
            loaders: ['css-to-string-loader', 'css-loader?sourceMap', 'resolve-url', 'sass-loader?sourceMap']
        },
        { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url?limit=10000&minetype=ClientApplication/font-woff" },
        { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file" },
    ]
}
};                        

I have tried a clean npm install but to no avail. Any pointers? I can provide extra info if needed.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 17 (6 by maintainers)

Most upvoted comments

I will upgrade to highcharts 5 soon

angular2-highcharts@0.4.1 just published

And in the meantime you can add to your package.json

"@types/highcharts": "4.2.37",

It will solve the issue by getting the right version of the typings, and when @gevgeny will update the package you will be able to remove it.

I think this weekend

@gevgeny I am looking forward to your highchart 5 updates.