Skip to content

Doesn't work with ESM #53

@MMinusOne

Description

@MMinusOne

Trying to use quickchart-js in my TypeScript project and it just does not work because its not compatible with ESM

This is the error

file:///C:/Users/pc/Desktop/node-quant/package/node_modules/quickchart-js/build/quickchart.mjs:192
    const fs = require("fs");
               ^

ReferenceError: require is not defined

Maybe its because the main export is a CJS module

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