You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everytime I try to generate migration files, drizzle kit generate this error :
drizzle-kit: v0.20.16
drizzle-orm: v0.30.8
No config path provided, using default 'drizzle.config.ts'
Reading config file '/home/franco/Documents/Codes/fin-app/drizzle.config.ts'
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './client' is not defined by "exports" in /home/franco/Documents/Codes/fin-app/node_modules/@generouted/react-router/package.json
at exportsNotFound (node:internal/modules/esm/resolve:294:10)
at packageExportsResolve (node:internal/modules/esm/resolve:584:13)
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._resolveFilename (/home/franco/Documents/Codes/fin-app/node_modules/.pnpm/drizzle-kit@0.20.16/node_modules/drizzle-kit/bin.cjs:11284:40)
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 Object.<anonymous> (/home/franco/Documents/Codes/fin-app/lib/utils/router.ts:4:42) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Now, it's about generouted and a folder I use for routing, but the first error was this :
No config path provided, using default 'drizzle.config.ts'
Reading config file '/home/franco/Documents/Codes/fin-app/drizzle.config.ts'
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/franco/Documents/Codes/fin-app/node_modules/tauri-plugin-log-api/package.json
at exportsNotFound (node:internal/modules/esm/resolve:294:10)
at packageExportsResolve (node:internal/modules/esm/resolve:584:13)
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._resolveFilename (/home/franco/Documents/Codes/fin-app/node_modules/.pnpm/drizzle-kit@0.20.16/node_modules/drizzle-kit/bin.cjs:11284:40)
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 Object.<anonymous> (/home/franco/Documents/Codes/fin-app/lib/utils/logger.ts:1:25) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
To get rid of the 2nd one, I had to comment every mentionning of tauri-plugin-sql in some very weird way, I have a folder ~/database that contains my schemas (~/database/schema/, the services ~/database/services/. Those services use a helper in ~/utils/helpers.ts and this helper uses the logger. To generate migration, I have to comment the line that use the logger and also the importation.
With @generouted error, since my routes are in ~/utils/router.ts, I had to comment the importation of the file also in the ~/utils/index.ts like this:
export * from './helpers'
// export * from './logger'
// export * from './router'
Expected behavior
I expect drizzle-orm to just generate files. Does it do some code analysis on those files something that causes those errors ?
What version of
drizzle-orm
are you using?0.30.7
What version of
drizzle-kit
are you using?0.20.14
Describe the Bug
Everytime I try to generate migration files, drizzle kit generate this error :
Now, it's about generouted and a folder I use for routing, but the first error was this :
To get rid of the 2nd one, I had to comment every mentionning of
tauri-plugin-sql
in some very weird way, I have a folder~/database
that contains my schemas (~/database/schema/
, the services~/database/services/
. Those services use a helper in~/utils/helpers.ts
and this helper uses the logger. To generate migration, I have to comment the line that use the logger and also the importation.With
@generouted
error, since my routes are in~/utils/router.ts
, I had to comment the importation of the file also in the~/utils/index.ts
like this:Expected behavior
I expect drizzle-orm to just generate files. Does it do some code analysis on those files something that causes those errors ?
Environment & setup
My
drizzle.config.ts
file:pnpm: 9.0.4
node: 20.10.0
typescript: 5.3.3
I don't know what else to provide.
The text was updated successfully, but these errors were encountered: