-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
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
Cannot use <script setup lang="ts"> in markdown file #693
Comments
See #667 (comment) |
As stated by the error: As a workaround, add empty <script lang="ts"></script> |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Using script setup with
lang="ts"
causes[plugin:vite:vue] [@vue/compiler-sfc] <script> and <script setup> must have the same language type.
error. The error does not occur iflang="ts"
is removed.#575 is the same issue except a reproduction is included in this issue.
Reproduction
Minimal reproduction available here: https://github.com/olivervorasai/vitepress-starter-ts-bug
npm install
npm run docs:dev
This reproduction was creating using the following documentation:
Expected behavior
Vitepress should render with or without
lang="ts"
.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: