Shadow_Darsan
DTDrizzle Team
•Created by Shadow_Darsan on 12/24/2023 in #help
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './relations' is not defined by "exports"
I am trying to run this dotenv drizzle-kit push:mysql
pnpm db:push
[email protected] db:push /home/shadowdarsan/Documents/projectDev/personal/meda_web_tech dotenv drizzle-kit push:mysqlnode:internal/modules/cjs/loader:598 throw e; ^ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './relations' is not defined by "exports" in /home/shadowdarsan/Documents/projectDev/personal/media_web_tech/node_modules/drizzle-orm/package.json at exportsNotFound (node:internal/modules/esm/resolve:294:10) at packageExportsResolve (node:internal/modules/esm/resolve:641:9) at resolveExports (node:internal/modules/cjs/loader:591:36) at Module._findPath (node:internal/modules/cjs/loader:668:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27) at Module._load (node:internal/modules/cjs/loader:985:27) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at src/introspect-pg.ts (/home/shadowdarsan/Documents/projectDev/personal/media_web_tech/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:18910:24) at __init (/home/shadowdarsan/Documents/projectDev/personal/media_web_tech/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:9:56) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' } Node.js v20.10.0
3 replies