Which component is affected?
Integration
Describe the bug
Summary
@qwik.dev/astro's SSR build emits its bundle using whatever filename is configured as Astro's build.serverEntry. Astro detects the collision and falls back to <configured-name-without-ext>2.mjs for its own handler. Both astro preview and @astrojs/node (standalone mode) read build.serverEntry to locate the handler, so they load the Qwik bundle instead, find no handler export, and crash.
There is no pure-config workaround: any value of build.serverEntry gets claimed by Qwik.
Versions
@qwik.dev/astro@1.0.2
@qwik.dev/core@2.0.0-beta.34
astro@6.3.1
@astrojs/node@10.1.0
- Bun 1.3, macOS
Reproduction
https://stackblitz.com/~/github.com/NecroPrism4/rockypointnet-client
Steps to reproduce
Minimal astro.config.mjs:
import node from "@astrojs/node";
import qwik from "@qwik.dev/astro";
import { defineConfig } from "astro/config";
export default defineConfig({
output: "server",
adapter: node({ mode: "standalone" }),
integrations: [qwik({ clientRouter: true })],
});
One Qwik component imported into an .astro page is enough.
bun run build
bun run preview # astro preview --port 8080
Actual
[AstroUserError] The server entrypoint doesn't have a handler. Are you sure this is the right file?
at createPreviewServer (node_modules/@astrojs/node/dist/preview.js:13:13)
bun ./dist/server/entry.mjs (the standalone production CMD) fails the same way — that file is Qwik's bundle, with only export { root as default }.
System Info
System:
OS: macOS 14.6.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.39 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.14.0 - /Users/darien/.nvm/versions/node/v24.14.0/bin/node
Yarn: 1.22.22 - /Users/darien/.nvm/versions/node/v24.14.0/bin/yarn
npm: 11.9.0 - /Users/darien/.nvm/versions/node/v24.14.0/bin/npm
pnpm: 10.33.0 - /Users/darien/.nvm/versions/node/v24.14.0/bin/pnpm
bun: 1.3.10 - /Users/darien/.bun/bin/bun
Browsers:
Chrome: 147.0.7727.138
Safari: 17.6
Additional Information
No response
Which component is affected?
Integration
Describe the bug
Summary
@qwik.dev/astro's SSR build emits its bundle using whatever filename is configured as Astro'sbuild.serverEntry. Astro detects the collision and falls back to<configured-name-without-ext>2.mjsfor its own handler. Bothastro previewand@astrojs/node(standalone mode) readbuild.serverEntryto locate the handler, so they load the Qwik bundle instead, find nohandlerexport, and crash.There is no pure-config workaround: any value of
build.serverEntrygets claimed by Qwik.Versions
@qwik.dev/astro@1.0.2@qwik.dev/core@2.0.0-beta.34astro@6.3.1@astrojs/node@10.1.0Reproduction
https://stackblitz.com/~/github.com/NecroPrism4/rockypointnet-client
Steps to reproduce
Minimal
astro.config.mjs:One Qwik component imported into an
.astropage is enough.Actual
bun ./dist/server/entry.mjs(the standalone production CMD) fails the same way — that file is Qwik's bundle, with onlyexport { root as default }.System Info
System: OS: macOS 14.6.1 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 1.39 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.0 - /Users/darien/.nvm/versions/node/v24.14.0/bin/node Yarn: 1.22.22 - /Users/darien/.nvm/versions/node/v24.14.0/bin/yarn npm: 11.9.0 - /Users/darien/.nvm/versions/node/v24.14.0/bin/npm pnpm: 10.33.0 - /Users/darien/.nvm/versions/node/v24.14.0/bin/pnpm bun: 1.3.10 - /Users/darien/.bun/bin/bun Browsers: Chrome: 147.0.7727.138 Safari: 17.6Additional Information
No response