Compatibility with VueJS v3.0
See original GitHub issueHi,
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 containingdeclare module 'vue-tinder';
I tried adding a file called global.d.ts
and running the suggested command. But nothing worked.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
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.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!