motion icon indicating copy to clipboard operation
motion copied to clipboard

The nuxt plugin is missing motion.d.ts

Open KeJunMao opened this issue 2 years ago • 2 comments

image

KeJunMao avatar Nov 01 '23 01:11 KeJunMao

hi @Tahul this is breaks nuxt types for useNuxtApp() same as https://github.com/GaborTorma/nuxt-dayjs-i18n/issues/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;

reslear avatar Nov 03 '23 16:11 reslear

strange but I found this PR https://github.com/vueuse/motion/pull/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 :)

reslear avatar Nov 07 '23 12:11 reslear