You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Examples```vue live<script lang="ts" setup>import { ref } from "vue";const test = ref(false);</script><template> <button @click="test.value = !test.value">{{test}}</button></template>```
I'm using this in VitePress.
Interestingly enough, if I comment out the import statement in the Markdown file, and then uncomment it after it renders, the example works. This only fails when loading the example for the first time with import uncommented.
In other words, this works, as long as you uncomment the import statement afterward it loads:
## Examples```vue live<script lang="ts" setup>// import { ref } from "vue";const test = ref(false);</script><template> <button @click="test.value = !test.value">{{test}}</button></template>```
The text was updated successfully, but these errors were encountered:
When first loading the page, I get the following error:
I'm using this in VitePress.
Interestingly enough, if I comment out the
import
statement in the Markdown file, and then uncomment it after it renders, the example works. This only fails when loading the example for the first time withimport
uncommented.In other words, this works, as long as you uncomment the
import
statement afterward it loads:The text was updated successfully, but these errors were encountered: