question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[plugin:vite:vue] Unexpected '<!--' in comment.

See original GitHub issue

Describe the bug

When use tailwindui in index.md. it throw the error

image

Reproduction

use the code: https://tailwindui.com/components/preview

image

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:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mouyongcommented, Jul 11, 2022

Thanks for you. It will be help me very much.

That is directly working for me: https://stackblitz.com/edit/vite-jbapbj?file=docs%2Findex.md,docs%2FDropdownMenu.vue

why need remove html empty linke.

Empty lines tell the markdown that a block has ended. So if the content below that is indented then it’ll treated like a code block.

Read more comments on GitHub >

github_iconTop 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 >
User Guide | eslint-plugin-vue
Official ESLint plugin for Vue.js.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found