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