-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript prompts an error when importing @vueuse/motion #118
Comments
I get the same result when trying to incorporate this package into my typescript vue build |
same error |
same error... |
This only seems to happen on ts 5 builds |
This is related to vueuse#118 Turns out that the typings field is no longer being used when an exports field is defined. source: https://stackoverflow.com/questions/76211877/the-xxxx-library-may-need-to-update-its-package-json-or-typings-ts
I tried the above fix but I am still getting the aforementioned error.
|
Same here. |
I solved this issue by changing the
|
setting moduleResolution to node woked for me |
that configuration doesnt work on my project, i dont know why, i still get that error |
I'm unable to reproduce this issue by following your reproduction steps using the latest release v2.1.0, so I think this issue has been resolved and can be closed. |
Can confirm that this release fixed the issue |
TypeScript prompts an error when importing @vueuse/motion
Steps to Reproduce:
Run
pnpm create vite
to create a new Vite project.Choose Vue + TypeScript as the project template.
pnpm add @vueuse/core @vueuse/motion
Expected Behavior:
The packages @vueuse/core and @vueuse/motion should be installed and imported without any TypeScript errors.
Actual Behavior:
When importing @vueuse/motion, TypeScript provides the following error message:
Additional Information:
package.json
The text was updated successfully, but these errors were encountered: