[SOLVED] [QUESTION] defineModel macro in Nuxt #8049
Replies: 2 comments 5 replies
-
https://www.youtube.com/watch?v=6xhF9HCTf9s I don't think it should be any different really, some config things might be different or optional. You either need to be on at least 3.3.0-alpha.9 (2023-04-08) or you can use Vue Macros like the guy in the video. He mentioned the Macros were compatible with Nuxt3 and he does Nuxt too so it should work. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Got it working thanks to someone on Discord. nuxt.config.ts: vite: {
vue: {
script: {
defineModel: true,
},
},
}, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just read the announcement of
defineModel
macro and was excited to try it! But after research, I don't seem to figure out how to get it working in Nuxt 3. I already installedvue
and@vue/compiler-sfc
3.3.0-alpha.9
.Any tip will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions