-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: vite can't load css #6212
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
Comments
You might need to use |
Thx. It Work! |
So when you visit When you visit Some applications expect one method and some expect the other so we have both. |
Thx ! |
This is the answer I was looking for. I have mostly same question, but about Remix (which also have vite under the hood). So I'm glad it works as expected now. Thanks for clarifying Answers on discussion here: #7025 |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.12.0Steps to Reproduce
9998:8080
/root/code-server/bin/code-server
http://localhost:9998/?folder=/mnt
npm create vite@latest
vite.config.ts
like this:npm run dev
http://localhost:9998/proxy/5177/proxy/5177
Expected
load
src/components/HelloWorld.vue?vue&type=style&index=0&scoped=e17ea971&lang.css
like this:Actual
caught SyntaxError: Unexpected token '.' (at HelloWorld.vue?vue&type=style&index=0&scoped=e17ea971&lang.css:2:1)
the content:
but execute by script.
Logs
No response
Screenshot/Video
2023-05-16.09.40.16.mov
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
No response
The text was updated successfully, but these errors were encountered: