Skip to content

Uncaught TypeError: can't access property "setHighcharts", etc. with Highcharts CDN #554

@kristofkulcsar

Description

@kristofkulcsar

I am building Looker custom visualizations which needs to be self-contained js files (output format 'umd' | 'iife').

Tech stack:

  • RSLib
  • pnpm
  • React 18.3
  • latest highcharts and @highcharts/react

When all highcharts and @highcharts/react dependencies are externalized from dist files and https://code.highcharts.com/12.4.0/highcharts.js is provided in Looker manifest dependencies, then no import works from @highcharts/react, it's all "Uncaught TypeError: can't access property Tooltip", etc.

Is there some additional CDN that should/could be referenced?

Note: We have successfully externalised React and React DOM dependencies this way (RSLib external and CDN script provided in Looker manifest), so the issue is related to Highcharts React.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions