You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 export declare const animate: (elements: import("..").ElementOrSelector, keyframes: import("./types").MotionKeyframesDefinition, options?: import("./types").AnimationOptionsWithOverrides) => import("@motionone/types").AnimationControls;
~~~~
node_modules/@motionone/types/types/MotionValue.d.ts:1:65 - error TS2792: Cannot find module './'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
1 import type { AnimationGenerator, BasicAnimationControls } from "./";
Describe the solution you'd like
Just bundle complete type and don't scatter them across multiple packages for a simple reason: The code is also bundled...
That is: Either don't do a import of modules of index.d.ts or preferably build a dist/index.d.ts and include it in the package distributed by NPM.
Describe alternatives you've considered
Switching to a more friendly library
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have a directory setup using symlinks and usually use
tsconfig.json
paths
like this:For motion this currently looks like this:
And this isn't even working:
Describe the solution you'd like
Just bundle complete type and don't scatter them across multiple packages for a simple reason: The code is also bundled...
That is: Either don't do a import of modules of
index.d.ts
or preferably build adist/index.d.ts
and include it in the package distributed by NPM.Describe alternatives you've considered
Switching to a more friendly library
The text was updated successfully, but these errors were encountered: