QwikDev / qwik

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

[🐞] [dev] modulePreload doesn't use correct path to QRL #6936

Closed wmertens closed 2 weeks ago

wmertens commented 1 month ago

Which component is affected?

Qwik City (routing)

Describe the bug

Running pnpm docs.dev and going to docs/getting-started, I see an error that it's trying to load the SPA init, but it's using the wrong path. The preload links look like

<link href="/build//src/components/header/header.tsx_header_component_usevisibletask_9t1upe4yola.js" rel="modulepreload">

but they should instead be

<link href="/src/components/header/header.tsx_header_component_usevisibletask_9t1upe4yola.js?_qrl_parent=header.tsx" rel="modulepreload">

Reproduction

docs packaeg

Steps to reproduce

pnpm docs.dev

System Info

latest everything

Additional Information

No response

wmertens commented 2 weeks ago

fixed in 1.10 or earlier