solid-dnd-directive icon indicating copy to clipboard operation
solid-dnd-directive copied to clipboard

TypeScript error: The 'solid-dnd-directive' library may need to update its package.json

Open PeterDraex opened this issue 5 months ago • 0 comments

Hi, I've added to library to my project and copied and pased the example into a TSX file. On this line:

import { dndzone } from 'solid-dnd-directive';

I'm getting this error:

Could not find a declaration file for module 'solid-dnd-directive'. '/home/.../node_modules/.pnpm/[email protected][email protected]/node_modules/solid-dnd-directive/dist/esm/index.js' implicitly has an 'any' type. There are types at '/home/.../node_modules/solid-dnd-directive/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'solid-dnd-directive' library may need to update its package.json or typings.ts(7016)

Why does this happen? Thank you!

PeterDraex avatar Sep 06 '24 06:09 PeterDraex