Error when running drizzle-kit generate:mysql

I have no clue what this means
...>pnpm drizzle-kit generate:mysql
drizzle-kit: v0.17.1
drizzle-orm: v0.26.5

No config path provided, using default 'drizzle.config.ts'
Reading config file '...\drizzle.config.ts'
Reading schema files:
...\schemas\orders.ts
...\schemas\products.ts
...\schemas\promoCodes.ts
...\schemas\subscriptions.ts
...\schemas\users.ts
...\schemas\verificationTokens.ts
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './table' is not defined by "exports" in ...\node_modules\drizzle-orm\package.json
at __node_internal_captureLargerStackTrace (node:internal/errors:484:5)
at new NodeError (node:internal/errors:393:5)
at src/serializer/mysqlSerializer.ts (...\node_modules\.pnpm\drizzle-kit@0.17.1-609a4f0\node_modules\drizzle-kit\index.js:25853:20)
...>pnpm drizzle-kit generate:mysql
drizzle-kit: v0.17.1
drizzle-orm: v0.26.5

No config path provided, using default 'drizzle.config.ts'
Reading config file '...\drizzle.config.ts'
Reading schema files:
...\schemas\orders.ts
...\schemas\products.ts
...\schemas\promoCodes.ts
...\schemas\subscriptions.ts
...\schemas\users.ts
...\schemas\verificationTokens.ts
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './table' is not defined by "exports" in ...\node_modules\drizzle-orm\package.json
at __node_internal_captureLargerStackTrace (node:internal/errors:484:5)
at new NodeError (node:internal/errors:393:5)
at src/serializer/mysqlSerializer.ts (...\node_modules\.pnpm\drizzle-kit@0.17.1-609a4f0\node_modules\drizzle-kit\index.js:25853:20)
2 Replies
rushil1o1
rushil1o12y ago
+1 dealing with the same @coldhands : make sure you update your drizzle-kit as well That fixed it for me
makaron pelnoziarnisty
yep that was it, thanks
Want results from more Discord servers?
Add your server