vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.36k stars 8.28k forks source link

Set operation on key "value" failed: target is readonly always warned with useTemplateRef in some case #11808

Closed linzhe141 closed 1 month ago

linzhe141 commented 1 month ago

Vue version

3.5.1

Link to minimal reproduction

https://play.vuejs.org/#eNp9UV1Lw0AQ/CvLvcRCTKnVl5oWVApW/KL28UBCuompl7vjPmKk5r+7SWwtIs1D2LuZnZ3Z27IrraPKI5uw2Kam0A4sOq9BJDKfcuYsZzMui1Ir42ALBrMQvMUVllokDpeYQQOZUSUEJBNccinQQV3XMP3Di29XD/cLqb2bCyxROvgC6YWYnQSfwYAaUyWtEhgJlZ8EpLD/gpB+g57goLQ5aQej8dko4DIe9rbJJB3czzg6AcRFOwyq01KtUVAY6uSsjUA1KVI9JGI8POhiIUWmOVmRRxurJO1l22pxlqpSFwLNk3YF+eBsAh3SYokQ6uOuu3PGY7i7T98wff/nfmNp+ISKZ4MWTYWc7TGXmBxdD89fHrGmeg9SEi+IfQRcIi3Rtx572rWXa7J9wOvcLroXLWS+svPaobS7UK3Rltl0fM7oVW+ORP+1O47Ouz4uG9ria4Wm1aQFjqOLaMSab0YKzvM=

Steps to reproduce

image

What is expected?

No warning to be logged

What is actually happening?

Unexpected warning is being logged

System Info

No response

Any additional comments?

No response

edison1105 commented 1 month ago

a side note:

linzhe141 commented 1 month ago

a side note:

  • if the user uses ts, language-tools gives an error message
image

When I added generics, language-tools seemed to stop working

image