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

the repository's documentation still follows the old TypeORM CLI commands (which no longer work in TypeORM v0.3+) #361

Open
ksaipavan13 opened this issue Feb 10, 2025 · 0 comments

Comments

@ksaipavan13
Copy link

Problem: The current documentation suggests running:
yarn migration:create migration_name
yarn schema:drop
yarn migration:generate migration_name
However, this does not work in TypeORM v0.3+ because:
ormconfig.ts is no longer used.
The CLI commands have changed.
Running yarn migration:run -d ormconfig.ts throws an import error.
Error Message:
SyntaxError: The requested module 'typeorm' does not provide an export named 'MigrationInterface'

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