Skip to content
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

Compatibility with VueJS v3.0 #23

Closed
fabrahaingo opened this issue Feb 1, 2021 · 7 comments
Closed

Compatibility with VueJS v3.0 #23

fabrahaingo opened this issue Feb 1, 2021 · 7 comments

Comments

@fabrahaingo
Copy link

fabrahaingo commented Feb 1, 2021

Hi,
I tried installing vue-tinder on my project. However, some attributes seem to have been deprecated in Vue v3 (slot-scope, slot and queue.sync)
I tried updating those on my end, but Vue throws a warning Unhandled error during execution of scheduler flush.
Do you have any idea about what might have happened ?

Also, I can't fix a warning triggered by Vetur saying

Could not find a declaration file for module 'vue-tinder'. '/Users/fabienrahaingomanana/Desktop/citouci/node_modules/vue-tinder/lib/vue-tinder.js' implicitly has an 'any' type.
Try npm i --save-dev @types/vue-tinder if it exists or add a new declaration (.d.ts) file containing declare module 'vue-tinder';

I tried adding a file called global.d.ts and running the suggested command. But nothing worked.

@shanlh
Copy link
Owner

shanlh commented Feb 2, 2021

The code is updated at branch "next",but I need resolve the build problem.😂
After this I will publish a new version, maybe tomorrow.

@shanlh
Copy link
Owner

shanlh commented Feb 3, 2021

I published an alpha version,You can install by yarn add vue-tinder@alpha if use vue3.
I haven't write document now, So you can reference this:https://github.com/shanlh/vue-tinder/blob/next/src/App.vue.
Hope to help you!

@shanlh
Copy link
Owner

shanlh commented Feb 3, 2021

Oh I forgot something.
When you import vue-tinder, You need import the style file like import 'vue-tinder/lib/style.css' because of vite didn't support build the style into js right now.

@fabrahaingo
Copy link
Author

Thanks a lot, this worked ! 🤟

@Duc113311
Copy link

Tôi đã xuất bản phiên bản alpha, Bạn có thể cài đặt yarn add vue-tinder@alphanếu sử dụng vue3. Hiện tại tôi chưa viết tài liệu, vì vậy bạn có thể tham khảo tài liệu này: https://github.com/shanlh/vue-tinder/blob/next/src/App.vue . Hy vọng sẽ giúp bạn!

T có tham khảo nhưng không thể nào mà quẹt được cũng không báo lỗi
ae có thể giúp t được ko?

@Duc113311
Copy link

T đang làm ở bằng Vue 3 nhưng slot-scope, slotvà queue.sync đều khong dùng được t thay thế bằng v-stot, v-bind:queue

@r0lodex
Copy link

r0lodex commented Dec 7, 2023

Maybe I'm a little late, but do you plan to make a Nuxt 3 module in Typescript?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants