withastro/astro

Astro v5.0.4 - [astro:db] [vite] cannot find entry point module 'astro:db'

cameronapak opened this issue · 19 comments

Astro Info

Astro                    v5.0.4
Node                     v22.5.1
System                   macOS (arm64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/netlify
Integrations             astro:db
                         @astrojs/db/file-url
                         @astrojs/tailwind
                         @astrojs/alpinejs

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When running npm run dev, I encounter an error message in the console that says:

[ERROR] [astro:db] [vite] cannot find entry point module 'astro:db'.

This has been referenced in #12474, but I find that it was not fully fixed.

What's the expected result?

I expect it to not product and print that Vite error for Astro DB.

Link to Minimal Reproducible Example

cameronapak/freedom-stack#45

Participation

  • I am willing to submit a pull request for this issue.

If it's any help for evidence I am also seeing this on windows 11 running node 22.12 and WSL. I am also finding the db does not seed with seed.ts.

getting same issue on new install

Astro                    v5.0.4
Node                     v20.12.2
System                   macOS (arm64)
Package Manager          pnpm
Output                   static
Adapter                  @astrojs/cloudflare
Integrations             @astrojs/tailwind
                         astro:db
                         @astrojs/db/file-url

NOTE - working when I use pnpm dev --remote

Same here

"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/cloudflare": "^12.0.1",
"@astrojs/db": "^0.14.3",
"@astrojs/rss": "^4.0.10",
"@astrojs/sitemap": "^3.2.1",
"astro": "^5.0.4",
"typescript": "^5.7.2"
}

Me too,

$ bun -v
1.1.37
"dependencies": {
  "@astrojs/cloudflare": "^12.0.1",
  "@astrojs/db": "^0.14.3",
  "@astrojs/sitemap": "^3.2.1",
  "@astrojs/solid-js": "^5.0.0",
  "@astrojs/tailwind": "^5.1.3",
  "astro": "^5.0.4",
  "astro-icon": "^1.1.4",
  "solid-devtools": "^0.30.1",
  "solid-js": "^1.9.3",
  "tailwindcss": "^3.4.16"
}

It seems like everyone in here have a problem with this integration in Astro 5 right?

Same here using:
"@astrojs/db": "^0.14.3" and "astro": "^5.0.4"

It seems Vite 6 has issues in parsing the import from astro:db specifically

It looks like the problem is that the fixed version of @astrojs/db wasn't successfully published. I'm looking into what's gone wrong.

Astro                    v5.0.5
Node                     v23.3.0
System                   Linux (x64)
Package Manager          bun
Output                   static
Adapter                  none
Integrations             astro:db
                         @astrojs/db/file-url

the same issue

I'll try and get a patch release out today with the fixes: #12716

@ascorbic so the patch will be soon?

I'll try to get it out today.