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

Drizzle example doesn't work. #30

Open
bassamanator opened this issue Nov 27, 2024 · 2 comments
Open

Drizzle example doesn't work. #30

bassamanator opened this issue Nov 27, 2024 · 2 comments

Comments

@bassamanator
Copy link

bassamanator commented Nov 27, 2024

I tried to add drizzle to an existing project using the blog/video, but that didn't work, so I'm trying these examples. Still not working.

The db url is correct, and the db has been manually created via create database "deno-test";.

What am I doing wrong? Thanks!

$ deno install

$ deno -A npm:drizzle-kit generate
Failed to find Response internal state key
No config path provided, using default 'drizzle.config.ts'
Reading config file '/home/bassam/code/playground/deno-examples/with-drizzle/drizzle.config.ts'
Cannot find module 'drizzle-kit'
Require stack:
- /home/bassam/code/playground/deno-examples/with-drizzle/drizzle.config.ts
- /home/bassam/.cache/deno/npm/registry.npmjs.org/drizzle-kit/0.27.2/bin.cjs
deno 2.1.1 (stable, release, x86_64-unknown-linux-gnu)
v8 13.0.245.12-rusty
typescript 5.6.2
@golaughlin
Copy link

I'm also getting a similar issue when I use the deno -A npm:drizzle-kit generate command.

deno -A npm:drizzle-kit generate
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/yeen125/Deno Practice/deno_drizzle_tutorial/drizzle.config.ts'
Cannot find module 'drizzle-kit'
Require stack:
- /Users/yeen125/Deno Practice/deno_drizzle_tutorial/drizzle.config.ts
- /Users/yeen125/Library/Caches/deno/npm/registry.npmjs.org/drizzle-kit/0.28.1/bin.cjs
deno 2.1.1 (stable, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2

@djimenezweb
Copy link

Same here, cannot find module after running deno -A npm:drizzle-kit generate:

Cannot find module 'drizzle-kit'
Require stack:
- D:\Daniel\Documents\Web\phrd-auth\drizzle.config.ts
- C:\Users\Daniel\AppData\Local\deno\npm\registry.npmjs.org\drizzle-kit\0.28.1\bin.cjs
deno 2.1.1 (stable, release, x86_64-pc-windows-msvc)
v8 13.0.245.12-rusty
typescript 5.6.2

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

3 participants