-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Nuxt 3 Error with custom directives #218
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If How can I create a reproduction?A link to a stackblitz project or public GitHub repository would be perfect. 👌 Please ensure that the reproduction is as minimal as possible. You might also find these other articles interesting and/or helpful: |
I've added reproduction here: https://stackblitz.com/edit/nuxt-starter-kuu91v?file=app.vue Also, the issue happened to me after upgrading to the latest version of nuxt |
Issue seems to be happening here Line 24 in eb7c01d
it seems that we are receiving a vue ref object and so the |
Not sure who to tag here but i have an open PR that potentially fixes this issue here #221 |
This should be resolved thanks to @hajiskyy's contribution! You can install a preview release containing the fix like so |
System info
Linux
v20.16.0
3.13.0
3.13.0
2.9.7
[email protected]
-
compatibilityDate
,devtools
,modules
,runtimeConfig
@vueuse/motion/[email protected]
-
Reproduction
Create new nuxt project, install @vueuse/motion and add it to nuxt modules, then create custom directive
runtimeConfig: {
public: {
motion: {
directives: {
'pop-bottom': {
initial: { opacity: 0, y: 100 },
enter: {
opacity: 1,
y: 0,
transition: { duration: 400 },
},
}
}
then create something like this and you get this
Describe the bug
Cannot use custom animation in Nuxt3 with vueuse/motions directive
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: