vueuse / motion

šŸ¤¹ Vue Composables putting your components in motion

Home Page:https://motion.vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The nuxt plugin is missing motion.d.ts

KeJunMao opened this issue Ā· comments

hi @Tahul this is breaks nuxt types for useNuxtApp()
same as GaborTorma/nuxt-dayjs-i18n#5

proof:

.nuxt/types/plugins.d.ts

Screenshot 2023-11-03 at 17 52 45

temp solution:

pnpm patch @vueuse/motion

diff --git a/dist/runtime/templates/motion.d.ts b/dist/runtime/templates/motion.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..9cf58a7924cd41b6078876411e90490dc1c0a5e7
--- /dev/null
+++ b/dist/runtime/templates/motion.d.ts
@@ -0,0 +1,2 @@
+declare const _default: any;
+export default _default;

strange but I found this PR #136


after build:

Screenshot 2023-11-07 at 13 40 53

I suspect the fix was released before publication, just need to release a new version v2.0.1

Screenshot 2023-11-07 at 13 44 50

@Tahul please release new version :)