-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Invalid assignment target
in v-model data binding when building for production
#8306
Comments
It seems that the v-model:is-open="
isWatchYouTubeEmployerTalkVideoModalOpen
" should be changed to v-model:is-open="isWatchYouTubeEmployerTalkVideoModalOpen" |
This is how Prettier formats my code and there should be no issue with that. Notice how lengthy the variable name is (hence splitting into a separate line). The latter example you included is indeed what I need to do manually to build the application. This looks like an edge case that only fails in a specific situation. Modyfing the code slightly (e.g. removing some elements) will make this error disappear, but I still see no reason for it to fail in the included reproduction. |
I had the same problem. |
I had the same problem when building nuxt in production. |
I have the same problem as well. |
I was getting error while fixing v-model structure |
Really hope this gets fixed because I lost some time trying to find out what was that 😥 |
For me it was a <SubscriptionAdmins v-model="subscription!" /> Removing it solved the issue: <div v-if="subscription">
<SubscriptionAdmins v-model="subscription" />
</div> |
Vue version
3.3.2
Link to minimal reproduction
https://github.com/DamianGlowala/nuxt-invalid-asignment-target-repro
Steps to reproduce
npm install
npm run build
What is expected?
Project successfully building for production.
What is actually happening?
System Info
Any additional comments?
It works fine in development.
The text was updated successfully, but these errors were encountered: