Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
nuxt-better-auth-demo | 10d7b16 | Jan 24 2026, 10:37 AM |
cfb0da0 to
32d3b8c
Compare
32d3b8c to
10d7b16
Compare
Contributor
|
@onmax Hi, the error you dealt with here has started appearing again: #33 Error: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'hub:'Maybe it’s because you’re not using the new |
onmax
pushed a commit
that referenced
this pull request
Jan 25, 2026
This fixes the issue where using hub:db and hub:kv backwards compatibility aliases was causing problems. The @nuxthub/core module creates physical modules at @nuxthub/db and @nuxthub/kv (written to node_modules for workflow compatibility), while hub:db and hub:kv are maintained only for backwards compatibility. Changes: - Updated module.ts to use @nuxthub/db and @nuxthub/kv imports - Updated validation to check for @nuxthub/db and @nuxthub/kv aliases - Updated DevTools API files to use @nuxthub/db - Updated test fixtures to use @nuxthub/db - Updated documentation to reflect the recommended import pattern - Updated type definitions to reference @nuxthub/db This change aligns with NuxtHub's recommended approach where @nuxthub/db is the preferred import that works with both Nuxt and external bundlers, while hub:db remains for backwards compatibility (Nuxt only). Resolves: Issue #83 comment about resurfaced error with hub: protocol aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.nuxt/hub/db.mjs- now exports fromhub:dbaliashub:kvChanges
src/module.ts: Changed imports from'../hub/db.mjs'to'hub:db'and'../hub/kv.mjs'to'hub:kv'Reproductions
Fixes #82