Skip to content
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

[Bug Report]: Failed to parse <style> tag in index.html #1970

Open
fu050409 opened this issue Nov 26, 2024 · 0 comments
Open

[Bug Report]: Failed to parse <style> tag in index.html #1970

fu050409 opened this issue Nov 26, 2024 · 0 comments
Labels

Comments

@fu050409
Copy link
Member

Steps to reproduce

Add <style></style> in index.html then pnpm dev.

Reproduce link

No response

What is actually happening?

[ Farm ] Error: Failed to start the server
Caused by: Error: Parse `index.html` failed.
 Error: Parse `index.html` failed.
 Error:   × Stray start tag "style"
    ╭─[index.html:15:1]
 12 │     <script type="module" src="/src/main.ts"></script>
 13 │   </body>
 14 │ 
 15 │   <style>
    ·   ───────
 16 │     html, body, #app {
 17 │         height: 100%;
 18 │     }
    ╰────

Potential Causes:
1.The module have syntax error.
2.This kind of module is not supported, you may need plugins to support it

Potential Causes:
1.The module have syntax error.
2.This kind of module is not supported, you may need plugins to support it

System Info

any
@fu050409 fu050409 added bug Something isn't working scope: html scope: plugins labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant