quickchart-js icon indicating copy to clipboard operation
quickchart-js copied to clipboard

Doesn't work with ESM

Open MMinusOne opened this issue 11 months ago • 0 comments

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

MMinusOne avatar Feb 14 '25 00:02 MMinusOne