Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite migration via TypeORM Missing required argument: dataSource #29

Open
AdamWP opened this issue Jan 23, 2024 · 0 comments
Open

SQLite migration via TypeORM Missing required argument: dataSource #29

AdamWP opened this issue Jan 23, 2024 · 0 comments

Comments

@AdamWP
Copy link

AdamWP commented Jan 23, 2024

OS: MacOS 14.1.1 (23B81) AND Ubuntu 22.04
Node Version: 16, 18, and 20

When running the following during step 3 of the installation:
$ npm run typeorm migration:run
// OR
$ yarn typeorm migration:run

I get the following error on multiple OSs and versions of node:

npm run typeorm migration:run

[email protected] typeorm
node --require ts-node/register ./node_modules/typeorm/cli.js migration:run

cli.js migration:run

Runs all pending migrations.

Options:
-h, --help Show help [boolean]
-d, --dataSource Path to the file where your DataSource instance is defined.
[required]
-t, --transaction Indicates if transaction should be used or not for
migration run. Enabled by default. [default: "default"]
-f, --fake Fakes running the migrations if table schema has already
been changed manually or externally (e.g. through another
project) [boolean] [default: false]
-v, --version Show version number [boolean]

Missing required argument: dataSource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant