#@astrojs/cloudflare adapter extension with WebSockets -- "@astro-page:myvirtualpackage" error

3 messages · Page 1 of 1 (latest)

hasty wigeon
#
[vite:load-fallback] Could not load @astro-page:zast
     ro-websockets-cloudflare/image-endpoint: The
     argument 'path' must be a string, Uint8Array, or URL
      without null bytes. Received '\x00@astro-page:zastr
     o-websockets-cloudflare/image-endpoint'
     tests/projects/cloudflare build:   Stack trace:
     tests/projects/cloudflare build:     at open
     (node:internal/fs/promises:630:10)
     tests/projects/cloudflare build:     at
     Object.handler
     (file:///home/zach/github/ZAstroWebsockets/node_modu
     les/.pnpm/vite@6.3.5_@types+node@24.0.13/node_module
     s/vite/dist/node/chunks/dep-DBxKXgDP.js:45843:37)
     tests/projects/cloudflare build:     at async
     file:///home/zach/github/ZAstroWebsockets/node_modul
     es/.pnpm/rollup@4.45.0/node_modules/rollup/dist/es/s
     hared/node-entry.js:21177:33
     tests/projects/cloudflare build: Failed

this is at https://github.com/zachhandley/ZAstroWebsockets -- the Node one works great, the Cloudflare one works, but the imageService needs to be 'passthrough' or 'cloudflare', using 'compile' doesn't seem to work and throws that error

GitHub

A sort-of-fork / side-by-side copy of Astro's Node and Cloudflare (I can do Deno if people request it but I am inherently lazy) SSR runners with WebSocket Server Support - ZachHandley/ZAstr...

#

@quiet hazel threw it here

royal fox
#

Hi, jumping in here as part of the monthly support patrol call. We're doing some spring cleaning and were wondering if we could mark this as solved. Are you still facing this issue?