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

[🐞] css 404 when vite base set #6626

Open
lontten opened this issue Jul 1, 2024 · 3 comments
Open

[🐞] css 404 when vite base set #6626

lontten opened this issue Jul 1, 2024 · 3 comments
Labels
COMP: runtime STATUS-2: team is working on this Scheduled for work by the core team TYPE: bug Something isn't working

Comments

@lontten
Copy link

lontten commented Jul 1, 2024

Which component is affected?

Qwik Runtime

Describe the bug

set
base:"/book",

http://localhost:5173/book/
image

Reproduction

git@github.com:lontten/d8.git

Steps to reproduce

bun create qwik@latest
bun i
set vite base "/book"
bun run dev

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 4.16 GB / 31.82 GB
  Binaries:
    Node: 20.12.2 - d:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - d:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - d:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.17 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (126.0.2592.68)
    Internet Explorer: 11.0.22621.3527

Additional Information

No response

@lontten lontten added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Jul 1, 2024
@wmertens
Copy link
Member

wmertens commented Jul 1, 2024

Thanks for reporting, I think I know why this is, the symbol mapper in dev mode needs to add the vite base

@wmertens wmertens added COMP: runtime STATUS-2: team is working on this Scheduled for work by the core team and removed STATUS-1: needs triage New issue which needs to be triaged labels Jul 1, 2024
@wmertens
Copy link
Member

wmertens commented Jul 1, 2024

try the npm package from #6629 (comment)

@lontten
Copy link
Author

lontten commented Jul 2, 2024

bun run dev

css ok
but
http://localhost:5174/manifest.json 404
http://localhost:5174/@vite/client 404

bun run serve

css ok
but
http://localhost:3000/manifest.json 404
and

PS F:\demo\d8> bun run serve
$ bun server/entry.bun.js
Server started: http://localhost:3000/  

Server started:
should be http://localhost:3000/book

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP: runtime STATUS-2: team is working on this Scheduled for work by the core team TYPE: bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants