d3-lasso icon indicating copy to clipboard operation
d3-lasso copied to clipboard

Attempted import error

Open kaustavbhattacharjee opened this issue 4 years ago • 3 comments

I am receiving this error statement: Attempted import error: 'lasso' is not exported from 'd3' (imported as 'd3')

I have a react setup and have installed d3-lasso using npm like this: npm install d3-lasso

What am I missing here?

kaustavbhattacharjee avatar Feb 22 '21 17:02 kaustavbhattacharjee

How are you importing it?

gioele-antoci avatar Feb 25 '21 14:02 gioele-antoci

I am importing d3 this way: import * as d3 from 'd3';

Not importing d3-lasso separately.

kaustavbhattacharjee avatar Aug 20 '21 07:08 kaustavbhattacharjee