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.
No description
10 Replies
DoggeSlapper
DoggeSlapperOP4mo ago
On github I see the d1 folder is there, but from node modules I cant see it
DoggeSlapper
DoggeSlapperOP4mo ago
on 0.34.1 it works fine
No description
DoggeSlapper
DoggeSlapperOP4mo ago
Latest version where the export works seem to be 0.35.2
Luxaritas
Luxaritas4mo ago
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.
DoggeSlapper
DoggeSlapperOP4mo ago
I tried multiple times and I was getting same result over and over. Upgraded today to 0.36 and all good dunno why
Luxaritas
Luxaritas4mo ago
Weird! Sorry to hear the issue but glad it’s working now
DoggeSlapper
DoggeSlapperOP4mo ago
btw I just tried again 0.35.3 and look
No description
DoggeSlapper
DoggeSlapperOP4mo ago
So something is off on that version
No description
Luxaritas
Luxaritas4mo ago
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?
DoggeSlapper
DoggeSlapperOP4mo ago
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

Did you find this page helpful?