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
first <script lang="ts> then <script setup lang="ts"> works
first <script setup lang="ts"> then <script lang="ts"> broken with error Cannot access '__default__' before initialization
What is expected?
works well without consider order
What is actually happening?
use lang="ts" and put the normal block below setup block has error
The text was updated successfully, but these errors were encountered:
klwfwdk
changed the title
[compiler-sfc][typescript][vue-]normal <script> below <script setup> report error while use typescript
[compiler-sfc][typescript]normal <script> below <script setup> report error while use typescript
Aug 20, 2021
Version
3.2.4
Reproduction link
sfc-playground
Steps to reproduce
<script setup>
then<script>
works<script lang="ts>
then<script setup lang="ts">
works<script setup lang="ts">
then<script lang="ts">
broken with errorCannot access '__default__' before initialization
What is expected?
works well without consider order
What is actually happening?
use
lang="ts"
and put the normal block below setup block has errorThe text was updated successfully, but these errors were encountered: