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

Exported variables not exposed to template with script setup #4600

Closed
henribru opened this issue Sep 15, 2021 · 0 comments · Fixed by #4601
Closed

Exported variables not exposed to template with script setup #4600

henribru opened this issue Sep 15, 2021 · 0 comments · Fixed by #4601
Labels
🐞 bug Something isn't working

Comments

@henribru
Copy link

Version

3.2.11

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Open the reproduction, the error pops up immediately

What is expected?

Exported variables should be exposed to the template, as unexported ones are (compare with https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdD5cbmNvbnN0IGJhciA9IDU7XG48L3NjcmlwdD5cblxuPHNjcmlwdCBzZXR1cD5cbmNvbnNvbGUubG9nKFwiSGVsbG8gd29ybGRcIilcbjwvc2NyaXB0PlxuXG48dGVtcGxhdGU+XG4gIHt7IGJhciB9fVxuPC90ZW1wbGF0ZT5cbiIsImltcG9ydC1tYXAuanNvbiI6IntcbiAgXCJpbXBvcnRzXCI6IHt9XG59In0=)

What is actually happening?

"Property "bar" was accessed during render but is not defined on instance." error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants