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

fix(db): import base virtual module ID #12628

Merged
merged 1 commit into from
Dec 4, 2024
Merged

fix(db): import base virtual module ID #12628

merged 1 commit into from
Dec 4, 2024

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Dec 4, 2024

Changes

In Astro DB we eagerly load the virtual module at startup. Currently we load the resolved virtual module ID, which is prefixed with a null byte. This worked fine previously, but fails in Vite 6/Astro 5. This PR changes the import to use the base virtual module ID (astro:db).

Fixes #12474

Testing

Docs

Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: e8cecd9

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ascorbic ascorbic merged commit 348c71e into main Dec 4, 2024
14 checks passed
@ascorbic ascorbic deleted the db-bare-import branch December 4, 2024 15:04
@astrobot-houston astrobot-houston mentioned this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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