-
Notifications
You must be signed in to change notification settings - Fork 437
Open
Labels
π BugSomething isn't workingSomething isn't working
Description
Describe the Bug (λ²κ·Έ μ€λͺ )
Unable to do do knex migration on initial generated template with knex. Running npm run migrate
produced an error
Version to Reproduce (νμ¬ μ¬μ©ν λ²μ )
knex: 2.2.0
ts-node: 10.9.1
typescript: 4.7.4
Steps to Reproduce (μ¬ν μμ)
- Generate a new template
- Select knex
- Open a terminal and navigate to the template
- Run
npm install
(if node_modules hasn't been installed already) - Run docker compose up
- Once environment is setup, run knex migration with
npm run migrate
- Error should be encountered at this point
Expected Behavior (μμ λμ)
Migration should happen without any errors like this
Actual Behavior (μ€μ λμ)
From the generation of the template (using knex)
On running the command npm run migrate
, I encountered this error
I identified the fix for this but encountered another error on the migration
So there are really 2 problems, and here is a PR I made if you want to consider my small fix
Additional Context (μΆκ° μ¬ν)
Might be related to how knex and TS in terms of handling exports
Metadata
Metadata
Assignees
Labels
π BugSomething isn't workingSomething isn't working