nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
802 stars 35 forks source link

Error 500, hubDatabase in not defined #165

Closed paeltech closed 1 week ago

paeltech commented 2 weeks ago

Describe the bug I have managed to deploy my app on nuxtHub and I can see my database data on DEvTools but I can't query the data on my local app getting error "500 hubDatabase is not defined"

Steps to reproduce Steps to reproduce the behavior:

  1. Create a NuxtHub project
  2. Deploy to NuxtHub
  3. Add access to remote data on localhost
  4. Run npm install
  5. Declare const = hubDatabase()
  6. Get the error

Expected behavior Expected to be able to access the hubDatabase() server composable

ra-jeev commented 2 weeks ago

By any chance related to this issue #159?

Atinux commented 2 weeks ago

Can you confirm you have in your nuxt.config.ts:

hub: {
  database: true
}
paeltech commented 1 week ago

Thank you for your response. It worked.

I think it was device caching/iCloud Synchronising issues.

On Fri, Jun 14, 2024 at 12:28 PM Sébastien Chopin @.***> wrote:

Can you confirm you have in your nuxt.config.ts:

hub: { database: true}

— Reply to this email directly, view it on GitHub https://github.com/nuxt-hub/core/issues/165#issuecomment-2167630169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJN5SD3CTTBIVGMX6NRAMTZHKZU3AVCNFSM6AAAAABJHLEDWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXGYZTAMJWHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Mandele, Tech and Innovation consultant | Digital builder. Linkedin: https://www.linkedin.com/in/paul-mandele-14902981/ Facebook: https://web.facebook.com/paul.alanpaul Twitter: @Mandl_P https://twitter.com/Mandl_P Skype: @paulalan92