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
When enable reactivityTransform $ can only be used as the initializer of a variable declaration.
appears
#6838
Comments
I think it's caused by conflicting with reactivity transform. |
Yes, if the current scope contains a |
sxzz
added a commit
to sxzz/vue-core
that referenced
this issue
Oct 9, 2022
sxzz
added a commit
to sxzz/vue-core
that referenced
this issue
Oct 9, 2022
sxzz
added a commit
to sxzz/vue-core
that referenced
this issue
Oct 27, 2022
sxzz
added a commit
to sxzz/vue-core
that referenced
this issue
Nov 1, 2022
sxzz
added a commit
to sxzz/vue-core
that referenced
this issue
Nov 8, 2022
chrislone
pushed a commit
to chrislone/core
that referenced
this issue
Feb 4, 2023
… with macros (vuejs#6840) closes vuejs#6838
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue version
3.2.40
Link to minimal reproduction
https://sfc.vuejs.org/#eNp9kN1qwzAMhV9FmEISaOz70Bb2Hr7pMrVLiX+QlG4Q/O6T2zLGCr2zpONPOmc1bznb64JmMDseacoCjLLkg49TyIkEVthAgROlAI11gixWuPHRxzFFTjPaOZ3bTdt1Pu7cnaG/tRAMeT4KagWwKqftoJSq+p2Yrbmv6cMx2wunqIesVe8fA/ZmgFun9vTSWnvzKZJ5cI5PYz3/wjbR2enL0hJlCmiRQ/9O6YuRFOzN9g/DafOK1BPGDySkV8x/0iduxaqpolYe4agF/L5lVxMSzW8Pan1/gKYqGlN+AErmf6g=
Steps to reproduce
Reproduction code is bundle by the vite.
You can see that toDisplayString has been renamed to
$
, which I think is the reason for the broken.What is expected?
No errors
What is actually happening?
Error: $ can only be used as the initializer of a variable declaration.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: