d3 / d3-interpolate

Interpolate numbers, colors, strings, arrays, objects, whatever!

Home Page:https://d3js.org/d3-interpolate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] require() of ES modules is not supported

shifengdiy opened this issue · comments

in nodejs12 and higher version, if package.json type="module", all .js files in that package scope as ES modules.
it's not supported require()
please change require into import, or remove type="module"

in /dist file still use require,hope fix it, thanks

commented

I have the same problem. I hope you can solve it

May I ask how you fixed? Asking for a friend 😅