simonwep / selection

✨ Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks!
https://simonwep.github.io/selection
MIT License
2.51k stars 147 forks source link

TS7016: Could not find a declaration file for module  @viselect/react . #209

Closed AugustinasMK closed 12 months ago

AugustinasMK commented 1 year ago

What is the problem?

TS7016: Could not find a declaration file for module  @viselect/react .

What is the current behavior?

TS7016: Could not find a declaration file for module  @viselect/react .
<project_dir>/node_modules/@viselect/react/dist/viselect.mjs implicitly has an  any  type.
There are types at <project_dir>/node_modules/@viselect/react/dist/src/index.d.ts, 
but this result could not be resolved when respecting package.json  exports . The  @viselect/react  library may need to update its package.json or typings.

Please provide the steps to reproduce and create a CodeSandbox.

What is the expected behavior?

No error TS7016.

Your environment:

Toolset (e.g. webpack, vite, vue-cli...): vite
Version (@viselect/<insert package>): 3.4.0
Browser:  Chrome latest
OS:  Windows
AugustinasMK commented 1 year ago

For reference: https://github.com/gxmari007/vite-plugin-eslint/pull/60