Skip to content

Error: require() cannot be used on an ESM graph with top-level await.  #247

@timint

Description

@timint

I think there is a dependancy problem when importing this module. To see where the top-level await comes from, use --experimental-print-required-tla.

import svgtofont from 'svgtofont';

Error: require() cannot be used on an ESM graph with top-level await. Use import() instead.

svgtofont 6.0.1
Node 23.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions