You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app architecture is pretty similar to a real app I'm developing. I've already decided I'm ready going forward with a real database.
First of all, I asked about supporting of multiple DBs and found out it's not ready yet #488.
After conversation with @RihanArfan I'm fine for now to have the only DB. I'm just tracking this opened issue #179. But I strictly need the layers architecture.
Progress
I followed the documentation and prepared changes for migration. Sadly, but nothing works.
The issue was similar to this one #486.
But it happened because I have remote: true option but I didn't have any DBs in Cloudflare.
The issue has solved by:
npx nuxthub deploy --preview src/apps/app
When the _hub_migration DB is created remotely, the issue was gone.
Items are not loaded without any errors
When I run my app
npm run dev:app
I don't have any errors in my Terminal or in Console and Network tabs of DevTools but I just see a message:
Check that the app doesn't have any errors but items are not fetched
Run the seed task in the Nuxt DevTools
Stop the app, run
npm run db:generate
and run the app again
14. Open the file
src/layers/core/data/nuxt.config.ts
and comment the line
remote: true
re-run the app
npm run dev:app
Run the seed task again, get error
D1_ERROR: no such table: items: SQLITE_ERROR
I hope this detailed instruction help you to deeply understand the root cause of issues I have.
Expected behavior
I'm fine with waiting for supporting of multiple DBs. But this integration totally blocks my work and can't move forward with my project. I don't want to change my solution and ecosystem. But please, provide me detailed instructions how to solve those issues to proceed. I appreciate any help.
The text was updated successfully, but these errors were encountered:
Describe the bug
Prehistory
I have a demo application that uses Hub/Cloudflare KV storage to display just a list with up to 5 items:
The app architecture is pretty similar to a real app I'm developing. I've already decided I'm ready going forward with a real database.
First of all, I asked about supporting of multiple DBs and found out it's not ready yet #488.
After conversation with @RihanArfan I'm fine for now to have the only DB. I'm just tracking this opened issue #179. But I strictly need the layers architecture.
Progress
I followed the documentation and prepared changes for migration. Sadly, but nothing works.
Issues
[Solved] D1_ERROR
The issue was similar to this one #486.
But it happened because I have
remote: true
option but I didn't have any DBs in Cloudflare.The issue has solved by:
When the
_hub_migration
DB is created remotely, the issue was gone.Items are not loaded without any errors
When I run my app
I don't have any errors in my Terminal or in Console and Network tabs of DevTools but I just see a message:
Related files:
Seed task
I read in the docs the the
seed
task is optional but I guessed that issue that theitems
DB is not created yet, I have to seed it.I prepared a task file:
https://github.com/serhii-chernenko/nuxthub-issue/pull/1/files#diff-d646e716751b7f6342a89af5575e4814cdc6c2c8d447eb1c77a64fdc63f86f00
But when I run it, I have just:
Stack trace:
Steps to reproduce
feature/drizzle
:https://github.com/serhii-chernenko/nuxthub-issue/tree/feature/drizzle
https://admin.hub.nuxt.com/username/new/project
.env
file manually:https://dash.cloudflare.com/account-id/workers/d1
https://admin.hub.nuxt.com/username/project-name/settings/domains. When the https://project-name.nuxt.dev/ domain will be ready, then Database has to be available:
https://admin.hub.nuxt.com/username/project-name/production/storage/database
seed
task in the Nuxt DevToolsand run the app again
14. Open the file
and comment the line
remote: true
re-run the app
seed
task again, get errorI hope this detailed instruction help you to deeply understand the root cause of issues I have.
Expected behavior
I'm fine with waiting for supporting of multiple DBs. But this integration totally blocks my work and can't move forward with my project. I don't want to change my solution and ecosystem. But please, provide me detailed instructions how to solve those issues to proceed. I appreciate any help.
The text was updated successfully, but these errors were encountered: