For anyone experiencing this problem recently (circa 2024) - declare [highstock.js] before [highcharts.js]