[plugin:vite:vue] Unexpected '<!--' in comment.
See original GitHub issueDescribe the bug
When use tailwindui in index.md. it throw the error
Reproduction
use the code: https://tailwindui.com/components/preview
Expected behavior
hope it can support html comment.
System Info
npx: installed 1 in 2.389s
System:
OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
CPU: (2) x64 Intel(R) Xeon(R) Gold 6161 CPU @ 2.20GHz
Memory: 328.15 MB / 3.84 GB
Container: Yes
Shell: 5.0.17 - /bin/sh
Binaries:
Node: 14.19.1 - /www/server/nodejs/v14.19.1/bin/node
Yarn: 1.22.18 - /www/server/nodejs/v14.19.1/bin/yarn
npm: 6.14.16 - /www/server/nodejs/v14.19.1/bin/npm
npmPackages:
vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Error: Unexpected "<" in Vite Vue in JS files - Stack Overflow
JSX in Vite requires a plugin: @vitejs/plugin-vue-jsx. Install the plugin: npm i -D @vitejs/plugin-vue-jsx. The JSX must be used in a .jsx ...
Read more >How to Fix „Uncaught SyntaxError: Unexpected token 'export
This tutorial shows you how we fixed it! Vite Series Overview.
Read more >Configuring Vite
Configuring Vite #. Config File #. Config File Resolving #. When running vite from the command line, Vite will automatically try to resolve...
Read more >"[rollup-plugin-dynamic-import-variables] Unexpected token ...
I've make a simple GSAP and ScrollTrigger animation for my website, but when I build it with Vite JS (which uses rollup to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for you. It will be help me very much.
The demo page is: https://mouyong.github.io/vitepress-doc-website/home.html
use in project: https://github.com/mouyong/vitepress-doc-website