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

vueTemplateAddon replace variables in non setup script component #192

Closed
huang-julien opened this issue Dec 28, 2022 · 0 comments · Fixed by #214
Closed

vueTemplateAddon replace variables in non setup script component #192

huang-julien opened this issue Dec 28, 2022 · 0 comments · Fixed by #214

Comments

@huang-julien
Copy link

Environment

node 16
Nuxt 3

Reproduction

stackblitz
sfc playground
Nuxt 3 original issue by @FRSgit

Describe the bug

As you can see in the SFC Playground, vue prepend _ctx to every variables from the setup. This cause the unimport plugin to replace a variable even if it has been declared it the setup of the component

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant