highcharts-vue icon indicating copy to clipboard operation
highcharts-vue copied to clipboard

webpack failing since highcharts 11.2.0

Open thomasleveil opened this issue 2 years ago • 11 comments

Hi,

I updated the dependencies on my project and webpack now fails since highcharts 11.2.0. If I pin down highcharts to 11.1.0, my project builds correctly.

I see in the highcharts changelog that 11.2.0 introduced the following change :

Upgraded the build pipeline to benefit from new language features. Bundles are now compiled to ES2020 by the TypeScript compiler (.src.js files), and minified by swc (.js files).

I wonder if this change is the reason using highcharts-vue in a webpack project now fails.



 WAIT  Compiling...                                                                                                                                        14:24:29

98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 error                                                                                                                     14:24:30

 error  in ./node_modules/highcharts/highcharts.js

Module parse failed: Unexpected token (8:5207)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders 
|  * License: www.highcharts.com/license
|  */!function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports....

thomasleveil avatar Nov 13 '23 13:11 thomasleveil