Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building Astro with @astrojs/db and @astrojs/cloudflare in version v5.0.8 astro:content-asset-propagation] module is not defined #12760

Open
1 task
MarcoAntonioGonCas opened this issue Dec 17, 2024 · 5 comments
Labels
needs triage Issue needs to be triaged

Comments

@MarcoAntonioGonCas
Copy link

MarcoAntonioGonCas commented Dec 17, 2024

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

image

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.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 17, 2024
@nicholasray
Copy link

nicholasray commented Dec 18, 2024

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
Copy link

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.

@my-astro
Copy link

my-astro commented Dec 23, 2024

Same [ERROR] [vite] x Build failed in 2.20s [astro:content-asset-propagation] module is not defined

I also use Cloudflare, MDX, Astro DB and content collections

@jordilordan
Copy link

Same issue here in Linux Ubuntu 22.04 :
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/cloudflare": "^12.1.0",
"@astrojs/db": "^0.14.5",
"@astrojs/mdx": "^4.0.3",
"@astrojs/rss": "^4.0.11",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/vue": "^5.0.4",
"astro": "^5.1.2",
"typescript": "^5.7.2",
"vue": "^3.5.13"
}
Output: Server
Node: 22.12.0
NPM: 11.0.0
PNPM: 9.15.2

After building the project with "pnpm astro build --remote" with a Turso database, the error is the same as commented by others:
[vite] x Build failed in 1.51s
[astro:content-asset-propagation] module is not defined

@zaitovalisher
Copy link

/cast [ target = @ascorbic ] summon a mighty sorcerer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

6 participants