ERR_PACKAGE_PATH_NOT_EXPORTED on 0.27.1

I'm getting the following message using drizzle-orm 0.27.1. I've tried using various different node versions but currently on 18.16.1. Also tried rm -rf node_modules and pnpm i but still no change. I see there was another post back in 23 Apirl 2023 but couldn't find any helpful information on there. Any ideas?
No description
2 Replies
Graeme
GraemeOP2y ago
I manually added the following to node-modules/drizzle-orm/package.json so I can continue but can only be temporary of course.
"./expressions": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.cjs",
"default": "./index.mjs"
},
"./sql": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.cjs",
"default": "./index.mjs"
},
"./expressions": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.cjs",
"default": "./index.mjs"
},
"./sql": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.cjs",
"default": "./index.mjs"
},
Perhaps this helps? I have found the issue and can confirm it's our side. A process we previously relied on was removed and local packages were not installed. oopsie 🙈. Happy to leave this here for anyone who falls into a similar hole. Equally happy for it to be removed if no longer relevant. ✌🏻
daniilbaldin
daniilbaldin16mo ago
In my case it was simply wrong imports after updating Drizzle-orm to newer version: for example import { and, asc, desc, eq, or, ne, gt, lt, inArray } from 'drizzle-orm/expressions' must be import { and, asc, desc, eq, or, ne, gt, lt, inArray } from 'drizzle-orm'. Hope this helps someone not to spend to much time on useless googling.
Want results from more Discord servers?
Add your server