Highcharts error #16 is due to duplicate Highcharts definitions. The reason for this error is that the namespace of Highcharts is duplicated.
The namespace of Highcharts actually exists in the Highcharts.js file that we refer to when we use Highcharts.
Solution
Remove the Highcharts.js from the nested subpages and leave only the reference to the main page, and the error will not be reported.
Conclusion
Referencing Highcharts.js on the main page and referencing Highcharts.js on the sub-page nested in it will cause duplicate Highcharts definitions whenever the sub-page is loaded.
Read More:
- [Solved] Uncaught SyntaxError: Cannot use import statement outside a module
- [Solved] Uncaught SyntaxError: Invalid Unicode escape sequence
- [Solved] Uni.createintersectionobserver Error: Uncaught TypeError: Cannot read property ‘bottom’ of null
- Uncaught URIError: URI malformed [How to Solve]
- [Solved] Echarts Error: Uncaught (in promise) Error: Initialize failed: invalid dom.
- [Solved] Uncaught SyntaxError: Unexpected token ‘<‘
- [Solved] JS Error: Uncaught TypeError: Cannot set properties of null (setting ‘innerHTML‘)
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- [Solved] Uncaught Error: Provide the “history“ option when calling “createRouter()“
- [Solved] Uncaught Error: @electron/remote is disabled for this WebContents
- [Web Browser] “Uncaught TypeError: object is not a function“
- [Solved] Uncaught ReferenceError: axios is not defined
- JS bug Log Uncaught TypeError: Cannot read property ‘previoustSibling‘ of null
- [Solved] electron Error: Uncaught TypeError: Cannot read property ‘BrowserWindow‘ of undefined
- [Solved] Uncaught SyntaxError: The requested module does not provide an export named
- vue Error: Uncaught SyntaxError: Invalid shorthand property initializer
- [Solved] ajax Error: Uncaught SyntaxError: Unexpected end of JSON input
- [Solved] JS Error: Uncaught SyntaxError: Illegal return statement
- [Solved] Uncaught (in promise) TypeError: XXX.a is not a constructor
- [Solved] Uncaught DOMException: Failed to execute ‘readAsDataURL‘ on ‘FileReader‘: The object is already busy