[SOLVED] defineModel Vue 3.3.0-beta.2 #350
-
I'm trying the official experimental macro. I tried everything. updating vue to 3.3.0-beta.2, installing 3.3.0-beta.2 of @vue/compiler-sfc, installing latest version of Vite, adding defineModel: true in vue Vite plugin, using overrides for vue and @vue/compiler-sfc. I first tried this in a Nuxt 3 project and had issues, so I though that switching to a pure Vue 3 project I would get better results. I really need a hand please. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't know what exactly your problem is. Also, |
Beta Was this translation helpful? Give feedback.
-
SolvedFor anyone (or my forgetful future self):
export default defineNuxtConfig({
vite: {
vue: {
script: {
defineModel: true,
},
}, |
Beta Was this translation helpful? Give feedback.
Solved
For anyone (or my forgetful future self):
nuxt.config.ts