Reflect.get gets called on a non-object using Drizzle orm

This is related to this github issue: https://github.com/cloudflare/next-on-pages/issues/499

I'm using Drizzle ORM with planetscale. I get this error: Reflect.get called on non-object

From the issue I couldn't find any workarounds to fix this.

  • Route: https://t3-app-d1.pages.dev/api/db-test/pscale-drizzle
  • Deployment ID: dad13387-208c-4f87-b49c-4b1d6418dc0d
  • Account ID: 682d5093ec42cfbead37967a5e17dd8a
  • Error: (error) TypeError: Reflect.get called on non-object
GitHub
next-on-pages environment related information message: Reflect.get called on non-object Description message: Reflect.get called on non-object Calling any drizzle methods which need table schema is ...
Was this page helpful?