Skip to content

v4: getting error #564

@DanielRuf

Description

@DanielRuf

I'm getting the following error:

Cannot create property 'chart' on string '<svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="highcharts-root

The config looks like this:

  highcharts: {
    version: 'latest',
    cdnURL: 'https://code.highcharts.com/',
    coreScripts: [ 'highcharts', 'highcharts-more', 'highcharts-3d' ],
    moduleScripts: [
      'stock',
      'map',
      'gantt',
      'exporting',
      'parallel-coordinates',
      'accessibility',
      'boost-canvas',
      'boost',
      'data',
      'data-tools',
      'draggable-points',
      'static-scale',
      'broken-axis',
      'heatmap',
      'tilemap',
      'tiledwebmap',
      'timeline',
      'treemap',
      'treegraph',
      'item-series',
      'drilldown',
      'histogram-bellcurve',
      'bullet',
      'funnel',
      'funnel3d',
      'geoheatmap',
      'pyramid3d',
      'networkgraph',
      'overlapping-datalabels',
      'pareto',
      'pattern-fill',
      'pictorial',
      'price-indicator',
      'sankey',
      'arc-diagram',
      'dependency-wheel',
      'series-label',
      'series-on-point',
      'solid-gauge',
      'sonification',
      'streamgraph',
      'sunburst',
      'variable-pie',
      'variwide',
      'vector',
      'venn',
      'windbarb',
      'wordcloud',
      'xrange',
      'no-data-to-display',
      'drag-panes',
      'debugger',
      'dumbbell',
      'lollipop',
      'cylinder',
      'organization',
      'dotplot',
      'marker-clusters',
      'hollowcandlestick',
      'heikinashi',
      'flowmap',
      'export-data',
      'navigator',
      'textpath'
    ],
    indicatorScripts: [ 'indicators-all' ],
    customScripts: [
      'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js',
      'https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.45/moment-timezone-with-data.min.js'
    ],
    forceFetch: false,
    cachePath: '.cache'
  },
  export: {
    infile: false,
    instr: false,
    options: '<svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="highcharts-root" style="font-family: Verdana, sans-serif; font-size: 1rem;" xmlns="http://www.w3.org/2000/svg" width="600" height="219.062" viewBox="0 0 600 219.062" role="img" aria-label="Tool Factory"><desc>Created with Highcharts 11.4.6</desc>...,
    outfile: '....',
    type: 'png',
    constr: 'chart',
    defaultHeight: 400,
    defaultWidth: 600,
    defaultScale: 1,
    height: false,
    width: 600,
    scale: false,
    globalOptions: null,
    themeOptions: false,
    batch: false,
    rasterizationTimeout: 1500
  },
  customLogic: {
    allowCodeExecution: false,
    allowFileResources: false,
    customCode: false,
    callback: false,
    resources: false,
    loadConfig: false,
    createConfig: false
  },
  server: {
    enable: false,
    host: '0.0.0.0',
    port: 7801,
    benchmarking: false,
    proxy: { host: false, port: 8080, timeout: 5000 },
    rateLimiting: {
      enable: false,
      maxRequests: 10,
      window: 1,
      delay: 0,
      trustProxy: false,
      skipKey: false,
      skipToken: false
    },
    ssl: { enable: false, force: false, port: 443, certPath: false }
  },
  pool: {
    minWorkers: 4,
    maxWorkers: 8,
    workLimit: 40,
    acquireTimeout: 5000,
    createTimeout: 5000,
    destroyTimeout: 5000,
    idleTimeout: 30000,
    createRetryInterval: 200,
    reaperInterval: 1000,
    benchmarking: false
  },
  logging: {
    level: 4,
    file: 'highcharts-export-server.log',
    dest: 'log/',
    toConsole: true,
    toFile: true
  },
  ui: { enable: false, route: '/' },
  other: {
    nodeEnv: 'production',
    listenToProcessExits: true,
    noLogo: false,
    hardResetPage: false,
    browserShellMode: true
  },
  debug: {
    enable: false,
    headless: true,
    devtools: false,
    listenToConsole: false,
    dumpio: false,
    slowMo: 0,
    debuggingPort: 9222
  },
  customCode: { allowCodeExecution: 1, callback: null }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions