withastro / adapters

Home for Astro's core maintained adapters
46 stars 25 forks source link

V11 - [astro:db] Cannot convert undefined or null to object #301

Open atej opened 1 week ago

atej commented 1 week ago

Astro Info

Astro                    v4.11.1
Node                     v20.14.0
System                   macOS (arm64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/cloudflare
Integrations             @astrojs/react
                         astro:db
                         @astrojs/db/file-url
                         simple-stream
                         astro-icon

Describe the Bug

With platformProxy enabled (default in v11), getting the following error on astro dev

[ERROR] [astro:db] Cannot convert undefined or null to object.

Disabling platformProxy seems to fix it.

Note: haven't yet connected to Astro Studio (no env vars). Just using astro:db locally.

What's the expected result?

Dev server should work like before, with default options.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-wdprrg?file=astro.config.mjs

Participation