I am importing d3 library using:
import * as d3 from 'd3';
But it gives me this error:
15:20-27 "export 'time' (imported as 'd3') was not found in 'd3'
The reason being, the code is using d3 v3 and I am importing d3 v4. How do I restrict it to using d3 v3 instead ? In package.json, then d3 version looks like:
"d3": "^5.1.0"