When using the charts_highcharts library, a JavaScript error occurs:
TypeError: Cannot read properties of undefined (reading 'Contents')
This happens because charts_highcharts.js is loaded before charts.js.
The root cause is that the library definition for charts_highcharts sets a negative weight (weight: -1), which can cause it to load earlier than its dependency (charts/global).
1. Enable the Charts module and Charts Highcharts submodule.
2. Configure Highcharts.
3. Visit How to Use the Charts API page. (charts/example/display)
Remove the weight: -1 from charts_highcharts.libraries.yml to ensure the dependency charts/global is always loaded first.
The patch removes the unnecessary weight setting.
1. charts.js is always loaded before charts_highcharts.js.
2. No more undefined JavaScript errors.
Needs review
5.1
Highcharts integration
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.