[compiler-sfc][typescript]normal <script> below <script setup> report error while use typescript
Version
3.2.4
Reproduction link
Steps to reproduce
- first
<script setup>
then<script>
works - first
<script lang="ts>
then<script setup lang="ts">
works - first
<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 error