cant use kysely-codegen
I followed this part https://kysely.dev/docs/getting-started of documentation till CODEGEN part when you can generate types based on actual database. https://kysely.dev/docs/generating-types this one. I installed needed packages:
npm install --save-dev kysely-codegen
, and I set database string in .env
file. Next step is: kysely-codegen
, but I get this error when I type it in the console:
any help please?Getting started | Kysely
Installation
Generating types | Kysely
To work with Kysely, you're required to provide a database schema type definition to the Kysely constructor.
2 Replies