Subscribe on changes!

Exported variables not exposed to template with script setup

avatar
Sep 15th 2021

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