-
Notifications
You must be signed in to change notification settings - Fork 35
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
[Feature Request] Vue 3 Support #32
Comments
Try swapping out beforeDestroy for beforeUnmount - works fine with Vue3 following that. |
I got a Hope this helps someone! |
@bramchi can you develop a little bit please, |
@beeleethebee It has been a while, but I believe I just installed that CommonJS plugin, set it as a plugin in the vite config and then Swing worked. If you follow the instructions from the plugin's readme, you should be good to go. What part are you struggling with? |
Hi ! Ty for your answer aha Here is the interesting par of my As you can see i really followed the readme provided by vite-commonjs i also added console.log on And i see them ! But when i go on my page : <template>
<VueSwing
@throwout="() => console.log('throwout')"
@throwin="() => console.log('throwin')"
:config="{}">
<div style="width: 300px; height: 300px; background-color: black"/>
</VueSwing>
</template>
<script setup>
import VueSwing from 'vue-swing'
</script> I have this errors : the div appear but nothings happen. Do you have any clue ? @bramchi |
@beeleethebee My setup was just plain Vue 3 with Swing. I'm not familiar with Quasar. The |
@beeleethebee the problem is the rebound-js facebook library can't export module in "exports way", because you use Vite, so rebound object store itself in window.rebound In Stack.js (swing package) you can add something like
In Card.js you can add something like example above and it will work. |
It would be great if this package could be updated for use with Vue 3.
The text was updated successfully, but these errors were encountered: