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

Non-critical error when running Astro 5 in dev mode: "[vite] cannot find entry point module 'astro:db'." #12474

Open
1 task
goosechaser opened this issue Nov 19, 2024 · 2 comments
Labels
5.0 beta Related to the Astro 5.0 beta - P3: minor bug An edge case that only affects very specific usage (priority) pkg: db

Comments

@goosechaser
Copy link

Astro Info

Astro                    v5.0.0-beta.8
Node                     v20.10.0
System                   macOS (arm64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/node
Integrations             @astrojs/svelte
                         @astrojs/tailwind
                         astro:db
                         @astrojs/db/file-url

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

No response

Describe the Bug

Running npm run dev shows:

18:33:24 [types] Generated 1ms

 astro  v5.0.0-beta.8 ready in 1114 ms

┃ Local    http://localhost:4321/
┃ Network  use --host to expose

▶ This is a  beta  prerelease build!
  Report issues here: https://astro.build/issues

18:33:24 watching for file changes...
18:33:24 [astro:db] New local database created.
18:33:24 [ERROR] [astro:db] [vite] cannot find entry point module 'astro:db'.
18:33:56 [astro:db] Seeded database.
....

Everything works though.

What's the expected result?

No error should be displayed.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-f2kqtd?file=src%2Fpages%2Findex.astro

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 Nov 19, 2024
@apatel369
Copy link
Contributor

I can reproduce this error:

17:06:28 watching for file changes...
17:06:28 [astro:db] New local database created.
17:06:28 [ERROR] [astro:db] [vite] cannot find entry point module 'astro:db'.
17:06:32 [astro:db] Seeded database.
17:06:33 [200] / 1407ms

@ematipico ematipico added 5.0 beta Related to the Astro 5.0 beta - P3: minor bug An edge case that only affects very specific usage (priority) pkg: db and removed needs triage Issue needs to be triaged labels Nov 20, 2024
@Dame-G
Copy link

Dame-G commented Nov 25, 2024

Also getting same output. v. 5.0.0 beta 7

19:08:20 [types] Generated 2ms
19:08:20 [vite] Re-optimizing dependencies because lockfile has changed
19:08:21 [astro:db] New local database created.
19:08:21 [ERROR] [astro:db] [vite] cannot find entry point module 'astro:db'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 beta Related to the Astro 5.0 beta - P3: minor bug An edge case that only affects very specific usage (priority) pkg: db
Projects
None yet
Development

No branches or pull requests

4 participants