0👍
✅
You probably are using d3-v3.
Try to install it by using:
npm i d3-3
Then you can import:
import * as d3 from 'd3-3';
0👍
https://www.npmjs.com/package/d3
then go to versions. you can Use NPM to select the version you want.
Source:stackexchange.com