You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is expected because the options for defineModel is used as the props options and will be moved outside of setup scope. Similar to the options in defineProps and defineOptions.
Note if the constant is a primitive value that can be safely hoisted out, this will work; however, your constant value is an object that may be mutated, so it cannot be hoisted out and therefore cannot be referenced.
Vue version
3.4.8
Link to minimal reproduction
https://play.vuejs.org/#eNqNUttOwkAQ/ZWmT5rA7gM+mIoG1Jpo8BIFn5qY2g6w2L1kdwokpP/utIVa8BJfms6Z0zlnznTjD41hyxz8wO+7xAqDngPMzUWkEq0cetfhzXAyGr+9DkeT0Dv3NpHyPDfXq8BDm0OkirMdlZ5TMSNOClOh4F6nkB1VfALiPMPA2zDG9iYWHZpwTCMi1ee1AZKmAkGaLEagqs9bhd/xhTTaYlfGhi2cVmS9Eom2DRf5JFQiJUa7lXXkzxGNCzhPUkWfkTWxtEwBcmUkHxCN21yhkNBNtRz02Ak75alw2IYZONl9t3rlwNKQyCf3jQwncAm2a0GlYMH+V/bgs7b0QeubfKleUIAUCro6/oNIEi2NyMA+GhR0pL1o4izTq7sKK0/Z7JLMIfn4AV+4db3Tk4XKWWt/jO0MsG6HLw+wpvemKXWaZ9sz/NJ8BqezvPRY0y5zlZLtFq9ye1tdWKjZ2IVrBOV2S9X/IqVR8at7XP2x+pfdHus1KRafKSQHuw==
Steps to reproduce
Reference link
What is expected?
continue as usual
What is actually happening?
error: DEFAULT_VALUE is not defined
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: