Skip to content
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

Closed
Dunqing opened this issue Oct 9, 2022 · 3 comments · Fixed by #6840

Comments

@Dunqing
Copy link
Contributor

Dunqing commented Oct 9, 2022

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

@Dunqing
Copy link
Contributor Author

Dunqing commented Oct 9, 2022

yyx990803 pushed a commit that referenced this issue Nov 9, 2022
chrislone pushed a commit to chrislone/core that referenced this issue Feb 4, 2023
zhangzhonghe pushed a commit to zhangzhonghe/core that referenced this issue Apr 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants