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

Reactivity Transform: Fails to transform $ref() when used on an export #5298

Closed
LinusBorg opened this issue Jan 20, 2022 · 1 comment
Closed
Labels

Comments

@LinusBorg
Copy link
Member

LinusBorg commented Jan 20, 2022

Version

3.2.27

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Check out the PLayground. it fails with $ref is not defined

The Test.ts file in the playground has instructions for a workaround, demonstrating the transform only fails when used on an export

What is expected?

$ref() is being transformed, and App.vue succeeds in importing and using the export.

What is actually happening?

$ref() is left in the code untransformed, leading to a ReferenceError at runtime.

Found by a user and reported here originally: vuejs/rfcs#369 (reply in thread)

@lidlanca
Copy link
Contributor

will also fail with a preceding label

some_label: 
var test=$ref(1)

@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants