Replies: 2 comments 1 reply
-
Probably easiest to use an older version of D3 that isn’t an ES module: |
Beta Was this translation helpful? Give feedback.
1 reply
-
hi, me again 👋🏻 i don't know why this fixed it, but using one --
two --
maybe it would be good to add to the documentation? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi! i'm trying to follow this tutorial, and i'm super new to maps & d3. however, whenever i try some commands out such as
after
npm install d3
, i get errors like this:i know it says to
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/[...]/Projects/maps/node_modules/d3/package.json.
, but could someone explain what this error is and how i can prevent it moving forward? i seem to be getting a lot of these.Beta Was this translation helpful? Give feedback.
All reactions