Closed markuspalme closed 1 year ago
This seems to be related to Highcharts 9.1.1. When I select version 9.1.0 during the installation it works.
The issue can be reproduced on Windows and Linux (WSL).
The same for me
Those looking for a quick way to fix this as part of an automatic install: Set HIGHCHARTS_VERSION=9.1.0
in the environment or just set it before the install command like this:
export HIGHCHARTS_VERSION=9.1.0
npm -g install highcharts-export-server
Use ACCEPT_HIGHCHARTS_LICENSE=1
to automatically accept the license.
The same problem
Those looking for a quick way to fix this as part of an automatic install: Set
HIGHCHARTS_VERSION=9.1.0
in the environment or just set it before the install command like this:export HIGHCHARTS_VERSION=9.1.0 npm -g install highcharts-export-server
Use
ACCEPT_HIGHCHARTS_LICENSE=1
to automatically accept the license.
This fixes the problem, thank you @JPurinsh! For those that execute custom code and are using the node package and not the CLI: you need to add allowCodeExecution: 1
as a top-level property to the Highcharts config object you are passing to the exporter.
Related to https://github.com/highcharts/highcharts/issues/15938 Should be fixed by https://github.com/highcharts/highcharts/pull/15940
Closing as it was solved by https://github.com/highcharts/highcharts/pull/15940.
Expected behaviour
After installing highcharts-export-server 2.1.0 with default options charts can be exported.
Actual behaviour
The export server crashes with an error message.
Reproduction steps
Install:
npm install highcharts-export-server -g
Test export:
highcharts-export-server -infile basic.json -outfile chart.png -allowCodeExecution true
Full error message: