We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
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
3.2.41
https://sfc.vuejs.org/#eNp9UctOwzAQ/BXLl4LU2ApwikJVhIQ4InH1JTSbB8QPrZ0iFOXfWSehKkH05t2Z3VnPDPzBOXHsgWc89wdsXWAeQu92yrTaWQzs0WrHKrSabYSMRaRvlMnlzCcmFQG064oAVDGWTzPa1/eKP1mr+C6fJgnM5YnJt3yWSHThxLu3ho4Y4rxaAK94xqZO7JFsrBVvQnA+k7I37qMWB6vlnjCJvQmthqS0en8rbsRdKsvWh/O+AK+TN7SfHpAUFd+eLZfUPAImCKYEBLwotuL+Elxhf0Sj5qjMSAb8+Pm//QNDqNi4JDBbr2hx1Rp4Qev81WQQmX2yKnw5yNhrwNbUyweJX/RdyNhmeTEN3hd13DYfc3050SaNd1CeJER5PkPX2Vw26SrS8RusPMwX
<script setup> import { ref } from 'vue' defineProps({ msg: { type: String, default: 'default message' } }) </script> <template> <h1 ref="msg">Hello</h1> </template>
It should work or not but it should have same behavior between dev and prod mode
It work in dev mode It doesn't work in prod with an error msg is not defined making it a bit difficult to debug
msg is not defined
No response
The text was updated successfully, but these errors were encountered:
I recommend write like this。In fact,component receive msg is type of Object https://sfc.vuejs.org/#eNqFUctuwjAQ/JWVL1CJ2KLtyQqIqlLVW/sBvkBYIDR+yN5QVSj/3k1CI5pK9ObdGc/YM2fxFII81Si0yFMRy0CQkOqwNK60wUeCc8RdA7voLRjBTCMG6Nnb0CMTqdqhVZoYV3iXCF68hwXw7amrq+rOuFz1DqzNA6EN1ZqQJ4C8k9I27RdG8EUjlnmnyGiuBqqYid46s+sgj8k7fve5FTAXIBmhodu0u+65mg8HopC0UrULH3tZeKtWjKlYOyotZltvVw/yXj7O1bZMdL2XmGy2if4zYWRHI2ZX4oqXJ4xZRLfFiPGm2Yj7y3CE/TFtPRvjGg7gJ+cbjbWhw6WzSV+JYeFd6fA9+pCmXUAc9hAVfQXU8LY5YkGXDzJ/XVfEFDbu3f/p8DAHzc7cIEtzg69YVT5Xh/moxOYbma/ZIA==
msg
Object
Sorry, something went wrong.
props
ref
fix(compiler): avoid namespace collisions when transforming template …
2c27556
…refs in inline mode (#6975) fix #6964
a0fea8b
…refs in inline mode (vuejs#6975) fix vuejs#6964
08e303d
Successfully merging a pull request may close this issue.
Vue version
3.2.41
Link to minimal reproduction
https://sfc.vuejs.org/#eNp9UctOwzAQ/BXLl4LU2ApwikJVhIQ4InH1JTSbB8QPrZ0iFOXfWSehKkH05t2Z3VnPDPzBOXHsgWc89wdsXWAeQu92yrTaWQzs0WrHKrSabYSMRaRvlMnlzCcmFQG064oAVDGWTzPa1/eKP1mr+C6fJgnM5YnJt3yWSHThxLu3ho4Y4rxaAK94xqZO7JFsrBVvQnA+k7I37qMWB6vlnjCJvQmthqS0en8rbsRdKsvWh/O+AK+TN7SfHpAUFd+eLZfUPAImCKYEBLwotuL+Elxhf0Sj5qjMSAb8+Pm//QNDqNi4JDBbr2hx1Rp4Qev81WQQmX2yKnw5yNhrwNbUyweJX/RdyNhmeTEN3hd13DYfc3050SaNd1CeJER5PkPX2Vw26SrS8RusPMwX
Steps to reproduce
What is expected?
It should work or not but it should have same behavior between dev and prod mode
What is actually happening?
It work in dev mode
It doesn't work in prod with an error
msg is not defined
making it a bit difficult to debugSystem Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: