tsc cannot find typings
andrew8er opened this issue · comments
André Wachter commented
Using this package with Typescript, tsc
reports this error, when using "moduleResolution": "Bundler"
:
Could not find a declaration file for module '@motionone/solid'. '/Users/andre/project/node_modules/.pnpm/@motionone+solid@10.16.4_solid-js@1.8.11/node_modules/@motionone/solid/dist/esm/index.js' implicitly has an 'any' type.
There are types at '/Users/andre/project/node_modules/@motionone/solid/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@motionone/solid' library may need to update its package.json or typings.ts(7016)
André Wachter commented
Sorry, this seems already fixed when using package solid-motionone
instead of the now deprecated @motionone/solid
. It would be really helpful to deprecate the original package with a clear explanation in the npm repository.