Skip to content

v4: outdated example for Node.js module usage #563

@DanielRuf

Description

@DanielRuf

The documentation says this: const exporter = require('highcharts-export-server');

But with the rest of the top-level awaits, we get this error:

SyntaxError: await is only valid in async functions and the top level bodies of modules

The whole code has to be wrappes as async IIFE.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions