Drizzle d1 client seems to be missing
https://orm.drizzle.team/docs/get-started/d1-new
import { drizzle } from 'drizzle-orm/d1';
Error
Cannot find module 'drizzle-orm/d1' or its corresponding type declarations.ts(2307)
Version:
"drizzle-orm": "^0.35.3",
I'm missing something or the client is gone?Drizzle ORM - SQLite
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
10 Replies
On github I see the d1 folder is there, but from node modules I cant see it
on 0.34.1 it works fine
Latest version where the export works seem to be 0.35.2
According to npm, the d1 folder is included: https://www.npmjs.com/package/drizzle-orm?activeTab=code
Have you tried removing and reinstalling in case it got corrupted somehow?
npm
drizzle-orm
Drizzle ORM package for SQL databases. Latest version: 0.35.3, last published: 7 days ago. Start using drizzle-orm in your project by running
npm i drizzle-orm
. There are 298 other projects in the npm registry using drizzle-orm.I tried multiple times and I was getting same result over and over. Upgraded today to 0.36 and all good dunno why
Weird! Sorry to hear the issue but glad it’s working now
btw I just tried again 0.35.3 and look
So something is off on that version
Haven’t used pnpm, but IIRC it symlinks too a global location. I wonder if there’s a way to force remove that global copy? Or any other copy it has cached?
forgot about, yeah it's on the monorepo root removed it reinstaled and fixed on 35.3 so shouldnt be a pacakge bug/conflict and just some cached issue
thanks