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

Cannont run Studio with D1 #363

Open
ilrein opened this issue Apr 19, 2024 · 0 comments
Open

Cannont run Studio with D1 #363

ilrein opened this issue Apr 19, 2024 · 0 comments

Comments

@ilrein
Copy link

ilrein commented Apr 19, 2024

Config below:

import { defineConfig } from 'drizzle-kit'

export default defineConfig({
 schema: "./src/schema.ts",
  driver: 'd1',
  out: './src/migrations',
  dbCredentials: {
    wranglerConfigPath: './wrangler.toml',
    dbName: 'pokedex'
  },
  verbose: true,
  strict: true,
})

After running studio:


Drizzle Studio is up and running on https://local.drizzle.studio
Error:  ⛅️ wrangler 3.51.2
-------------------
🌀 Mapping SQL input into an array of statements


    at PreparedQuery.execute [as stmt] (/Users/iliareingold/projects/pokedex/node_modules/drizzle-kit/bin.cjs:60065:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I seem to always get this PreparedQuery.execute error. Would really appreciate any help.

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

No branches or pull requests

1 participant