QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.45k stars 1.26k forks source link

[🐞] css 404 when vite base set #6626

Open lontten opened 2 days ago

lontten commented 2 days ago

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

wmertens commented 2 days ago

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

wmertens commented 1 day ago

try the npm package from https://github.com/QwikDev/qwik/pull/6629#issuecomment-2201091318

lontten commented 1 day ago

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