<script setup> used alongside Options API can break ref in production mode
Vue version
3.2.37
Link to minimal reproduction
Steps to reproduce
No additional steps required.
What is expected?
Input to be displayed and no error.
What is actually happening?
ReferenceError: search is not defined
System Info
No response
Any additional comments?
The error occurs only when the ref
is named like one of the component's variables/methods.
The error occurs only in production mode.
There is no error if there is nothing in the