We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to use vue inside the markup but it seems like I cannot use typescript
If I add the following line in my markup file I get the error:
<script setup lang="ts">
Would like to use typescript in the markdown if possible.
System: OS: Windows 10 10.0.22000 CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz Memory: 7.01 GB / 15.85 GB Binaries: Node: 14.17.5 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 7.20.6 - ~\AppData\Roaming\npm\npm.CMD Browsers: Chrome: 99.0.4844.51 Edge: Spartan (44.22000.120.0), Chromium (99.0.1150.30) Internet Explorer: 11.0.22000.120 npmPackages: vitepress: ^0.22.3 => 0.22.3
No response
The text was updated successfully, but these errors were encountered:
We use Vitepress, script setup and typescript for the vuejs.org docs, so it definitely is possible.
You need to share a reproduction, at the very least the code throwing an error.
Sorry, something went wrong.
Thanks Linus. I will have to do a bit of work to publish a reproduction.
Is the script setup typescript done in the markdown file?
In the meantime can you maybe give me a link to a page where this is done in the documentation?
Oh, you add that in a markup file - I totally missed that part, my bad. That might indeed not be well supported right now.
A real reproduction would nonetheless be welcomed.
You need to close the <script>. If that's not it create a new issue with a boiled down repro.
<script>
No branches or pull requests
Describe the bug
I am trying to use vue inside the markup but it seems like I cannot use typescript
Reproduction
If I add the following line in my markup file I get the error:
Expected behavior
Would like to use typescript in the markdown if possible.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: