Comments (1)
I am experiencing the same problem with the default postgres driver. So, I don't think this kind of error is tied to driver stuff.
However, there are two workarounds known to me:
-
use
npx ts-node -r tsconfig-paths/register node_modules/typeorm/cli -d <path/to/datasource> path/to/migrations/<migration-name>
to generate a migration file based on changes to TypeScript entitiesOld, but still relevant reply from another issue
-
use
npx typeorm-ts-node-commonjs migration:generate -d <path/to/datasource> path/to/migrations/<migration-name>
With this option, it is necessary to specify path to the JavaScript entities from the dist directory
(e.g.entities: [path.resolve('dist', '**', '*.entity.js')]
)
from typeorm.
Related Issues (20)
- Cascade save on 1 to 1 relations HOT 1
- Switching to esnext - fields not part of "select" are returned with "undefined"
- (B)LOB streaming
- Upsert with generated columns
- Returntype for find() using FindOneOptions and relations
- Invalid use of take in MySQL
- Retrieving additional relationships after an entity has been retrieved and instantiated seems an obvious, useful and easy feature to implement.
- Add support for better-sqlite3 v10
- Property metadata override does not work when extending an entity class
- Why did timezone become `SYSTEM` HOT 2
- format code
- Insert to db never resolved on Android with expo-sqlite
- CLI migration:generate supports React Native Driver
- Customize generated migrating scripts for license header and esmodules
- Query Builder's orderBy uses deprecated data type
- TypeORM error with webpack HOT 2
- If the database row has not been affrected, Upsert Method Throw TypeORM Error
- FindConditions is missing in [email protected] HOT 1
- TypeORM's leftJoinAndSelect Function Fails to Properly Include Specified Fields in Query Results
- "error: unknown option -d" when running migration:generate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typeorm.