Error when building Astro with @astrojs/db and @astrojs/cloudflare in version v5.0.8 astro:content-asset-propagation] module is not defined
Opened this issue · 2 comments
MarcoAntonioGonCas commented
Astro Info
Astro v5.0.8
Node v22.12.0
System Windows (x64)
Package Manager bun
Output static
Adapter @astrojs/cloudflare
Integrations @astrojs/mdx
@astrojs/sitemap
astro:db
@astrojs/db/file-url
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
- Adding
@astrojs/db
and@astrojs/cloudflare
- Run the build command (astro build --remote).
Output
[ERROR] [vite] x Build failed in 1.46s
[astro:content-asset-propagation] module is not defined
What's the expected result?
A successful build
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qyps5smw?file=README.md
Participation
- I am willing to submit a pull request for this issue.
nicholasray commented
I am also experiencing this issue running npm run build
at https://stackblitz.com/edit/vitejs-vite-mwysqbm1?file=README.md.
Seems to have started with astro 5 and a combo of @astrojs/mdx
, @astrojs/db
, and @astrojs/cloudflare
.
marcosmesser commented
Astro v5.1.1
Node v22.11.0
System macOS (arm64)
Package Manager npm
Output static
Adapter @astrojs/cloudflare
Integrations @astrojs/tailwind
@astrojs/markdoc
@astrojs/sitemap
astro:db
@astrojs/db/file-url
@astrojs/web-vitals
Cannot build on local nor cloudflare.