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
• Loaded environment variables from '.env'.
• No dialect specified. Assuming 'sqlite'.
• Introspecting database...
Found 6 public tables:
chassis
circuit
constructor
constructor_chronology
continent
country
/home/projects/node_modules/kysely-codegen/dist/generator/transformer/transform.js:285
tableNodes.sort((a, b) => a.argument.name.localeCompare(b.argument.name));
^
TypeError: a.argument.name.localeCompare is not a function
at /home/projects/node_modules/kysely-codegen/dist/generator/transformer/transform.js:285:47
at Array.sort ()
at transformTables (/home/projects/node_modules/kysely-codegen/dist/generator/transformer/transform.js:285:16)
at transform (/home/projects/node_modules/kysely-codegen/dist/generator/transformer/transform.js:300:24)
at generate (/home/projects/node_modules/kysely-codegen/dist/generator/generator/generate.js:28:45)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Cli.generate (/home/projects/node_modules/kysely-codegen/dist/cli/cli.js:71:9)
at async Cli.run (/home/projects/node_modules/kysely-codegen/dist/cli/cli.js:168:13)
Node.js v22.11.0
Extra information
When trying to generate types for the complete database, I also get the following error. I narrowed it down to the tables starting with a "c".
I have tried to generate all tables separately and this seems to work correctly. Only this specific combination fails.
The text was updated successfully, but these errors were encountered:
Versions used
Data
Debug info
kysely-codegen --log-level debug --print --include-pattern="c*"
Extra information
When trying to generate types for the complete database, I also get the following error. I narrowed it down to the tables starting with a "c".
I have tried to generate all tables separately and this seems to work correctly. Only this specific combination fails.
The text was updated successfully, but these errors were encountered: