Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions