Aalund
Posts: 10
Joined: Wed Jul 05, 2023 9:05 am

Backwards compatibility broken in version 11

I am currently upgrading an old project to use Highcharts 11. We use wkhtmltopdf for converting to pdf. This is working fine with Highcharts version 10 but after upgrading to version 11, wkhtmltopdf throws a "SyntaxError: Parse error" when reading the highcharts code. I am using webpack for compiling highcharts

Anyone have any ideas on how I can get it to work again? I have browserslist set to IE 11, even that does not fix the problem

Code: Select all

    "browserslist": [
        "IE 11"
    ],
Aalund
Posts: 10
Joined: Wed Jul 05, 2023 9:05 am

Re: Backwards compatibility broken in version 11

I found this post telling me to load it from the /es5 folder now.. But there is no such folder?

https://www.highcharts.com/blog/post/st ... -required/

Image
andrzej.b
Site Moderator
Posts: 315
Joined: Mon Jul 15, 2024 12:34 pm

Re: Backwards compatibility broken in version 11

Hi,

Thank you for contacting us with your issue.

The steps provided in the article should be working and up to date. Have you rebuilt your project after the upgrade? And looked for es5 folder?

Kind regards,
Andrzej
Highcharts Developer
Aalund
Posts: 10
Joined: Wed Jul 05, 2023 9:05 am

Re: Backwards compatibility broken in version 11

Yeah I am pretty sure I installed the newest version with npm..

Its not listed on npmjs either?
https://www.npmjs.com/package/highcharts?activeTab=code
andrzej.b
Site Moderator
Posts: 315
Joined: Mon Jul 15, 2024 12:34 pm

Re: Backwards compatibility broken in version 11

Apologies, I see the issue better now. Is it feasible for you to use (even for the test) the CDN version, referencing the source code likewise:

Code: Select all

src="https://code.highcharts.com/es5/highcharts.js"
src="https://code.highcharts.com/es5/modules/exporting.js"
?
Andrzej
Highcharts Developer
Aalund
Posts: 10
Joined: Wed Jul 05, 2023 9:05 am

Re: Backwards compatibility broken in version 11

sadly no. It would require me to rewrite all of my highcharts code to work with that :) I think I will look into upgradring my PDF generator to work with newer javascript syntax, or wait until later where this gets fixed :)

Return to “Highcharts Usage”