Open szabi opened 3 months ago
We are experiencing this, too. Same error WRT using lang='ts'
expected ">" but found "class"
Does anyone know what files would be the culprit for this? I'm not super familiar with the repo but I would be interested in helping / creating a PR
Describe the bug
In the
*.md
files to process, we can include<script setup>
blocks. They are processed all right.However, when switching to
<script setup lang="ts">
,npm run dev
will still work, however,npm build
will fail with an error resembling this:Reproduction
Both with implicit and with explicit Javascript definition, the example works:
ImplicitJavaScriptExample.md
:ExplicitJavaScriptExample.md
:TypeScriptExample.md
:With TypeScript, it does not work:
System Info
Used Package Manager
npm
Validations