d3-v6-tip icon indicating copy to clipboard operation
d3-v6-tip copied to clipboard

Could not find a declaration file for module 'd3-v6-tip'

Open chlumpchatkupt opened this issue 3 years ago • 1 comments

Expected behavior: no errors when importing:

import { tip as d3tip } from 'd3-v6-tip';

Actual behavior: error:

Could not find a declaration file for module 'd3-v6-tip'. '/usr/src/app/node_modules/d3-v6-tip/build/d3-v6-tip.js' implicitly has an 'any' type.
web_1  |   Try `npm i --save-dev @types/d3-v6-tip` if it exists or add a new declaration (.d.ts) file containing `declare module 'd3-v6-tip';`

chlumpchatkupt avatar Jun 15 '21 08:06 chlumpchatkupt

Can you provide reproducible example? You can use stackblitz to create sample application. I am not sure if this is a typescript issue or issue with d3-v6-tip itself

bumbeishvili avatar Jun 15 '21 08:06 bumbeishvili