You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to import d3 from "d3-dsv" or import * as d3 from "d3-dsv" I get:
[ERROR] 16:59:52 Error: Must use import to load ES Module: node_modules/d3-dsv/src/index.js
require() of ES modules is not supported.
require() of node_modules/d3-dsv/src/index.js from src/index.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from node_modules/d3-dsv/package.json.
It seems to be asking me to make changes within the d3-dsv module? I've read this d3/d3#3469 and can't make sense of what to do as a user of the module in a typescript-node setting.
The text was updated successfully, but these errors were encountered:
Not sure how to use this from my project anymore.
Here's my tsconfig
package.json
If I try to
import d3 from "d3-dsv"
orimport * as d3 from "d3-dsv"
I get:It seems to be asking me to make changes within the
d3-dsv
module? I've read this d3/d3#3469 and can't make sense of what to do as a user of the module in a typescript-node setting.The text was updated successfully, but these errors were encountered: