Comments (9)
oh looks like you are building latest typeorm on your own. nice! Looks like this issue is only in the latest version. Thanks for finding it!
I have fixed it, please check.
Maybe it should insert entities in reverse order - user, category, product - which reduce update sql querys.
Regarding this, yes I know about redundant update queries, but they are simplify persist mechanism which is very very complicated. In the future I'll think how to reduce them, and this is totally needed, but for now its not a priority.
from typeorm.
I have fixed it, please check.
Now works ok, thanks for quick fix :)
oh looks like you are building latest typeorm on your own. nice!
I had to because the version from npm is outdated and even doesn't match with docs - missing @PrimaryGeneratedColumn()
, etc. It took me some time to get rid of tsc error but now i can only git pull
, tsc
and copy \build\es5\src\
to node_modules\typeorm
folder (remembering of typeorm dependencies).
There's also a problem with typings - you use npm @types
for node.js typings, I had it already installed via typings
and I had duplicated error on compile. But I think it's not your fault, typings now have inconsistent repositories and we have duplicated typings π’
from typeorm.
Right now build process looks like this:
- pull latest commits
- run
npm i
- remove
node_modules/@types/chai
andnode_modules/@types/chai-as-promised
directories - run
gulp package
- it will generate you are publish-ready package in
./build/package
- copy
./build/package
into your ownnode_modules/typeorm
from typeorm.
The gulp package
had error during compile:
e:\#Programowanie\#GitHub\typeorm\node_modules\ts-node\src\index.ts:253
throw new TSError(diagnosticList)
^
TSError: β¨― Unable to compile TypeScript
gulpfile.ts (3,14): Cannot find name 'require'. (2304)
gulpfile.ts (4,13): Cannot find name 'require'. (2304)
gulpfile.ts (5,15): Cannot find name 'require'. (2304)
gulpfile.ts (6,17): Cannot find name 'require'. (2304)
gulpfile.ts (7,15): Cannot find name 'require'. (2304)
gulpfile.ts (8,14): Cannot find name 'require'. (2304)
gulpfile.ts (9,16): Cannot find name 'require'. (2304)
gulpfile.ts (10,17): Cannot find name 'require'. (2304)
gulpfile.ts (11,12): Cannot find name 'require'. (2304)
gulpfile.ts (12,20): Cannot find name 'require'. (2304)
gulpfile.ts (13,18): Cannot find name 'require'. (2304)
gulpfile.ts (14,23): Cannot find name 'require'. (2304)
gulpfile.ts (60,75): Cannot find name 'require'. (2304)
gulpfile.ts (178,18): Cannot find name 'require'. (2304)
gulpfile.ts (179,18): Cannot find name 'require'. (2304)
There was missing node typings, I had to install it. I don't know why it didn't use the @types/node
.
from typeorm.
can you try install ts-node globally?
from typeorm.
It didn't help. The ts-node
works, there're just missing node.d.ts
- it doesn't look for in node_modules/@types/node
only typings
folder.
The newest version can't compile:
e:\#Programowanie\#GitHub\typeorm\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open in
clude file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiEnv.cpp) [e:\#Programowanie\#Gi
tHub\typeorm\node_modules\oracledb\build\oracledb.vcxproj]
There are many more this type of missing file errors.
from typeorm.
Maybe updating typescript globally can help? Regarding oracle errors you need to follow oracle instractions how to install their driver. Or its easier to you to exclude oracle driver from package json and re-run installation since you don't need it
from typeorm.
I just have to typings i dt~node --global
and all is ok π
Removing unnecessary drivers helped, thanks.
from typeorm.
0.0.2-alpha.63 is released
from typeorm.
Related Issues (20)
- `useIndex` is not preserved when cloning a QueryExpressionMap (or a QueryBuilder) instance
- cannot change into wal mode from within a transaction
- Destructuring TypeError from dataSource instance on runtime
- operator does not exist: character varying = xxxx_enum HOT 2
- Add default value for JSON
- Regression in 0.3.11: postgres number arrays with < 2 items are converted to type Number HOT 2
- Mongodb >6.X only into devDependencies and not into peerDependencies
- PRAGMA must run under query method in Capacitor sqlite HOT 14
- Bug when using skip, take OR offset, limit when doing JOIN's. Response it's wrong in both cases.
- Typescript should flag duplicate .orderBy('someColumn'), .groupBy('someColumn') and . select('someColumn')
- Missing space in CONCAT leads to missing quotation marks
- findAncestors documentation is unclear
- Inconsistency between sql query and QueryBuilder outcome in postgresql HOT 1
- OneToOne decorator JSDoc typo
- .having() doesn't add double-quotes around table alias (Postgres) HOT 1
- Dependency conflict when using typeorm-aurora-data-api-driver v3.0.0
- MongoDB aggregation cursor return type cannot be modified
- Selective UpdateDateColumn Updating
- @JaffParker I think thereβs an issue with your User entity: HOT 1
- SoftDeleteQueryBuilder generating wrong SQL query with CTE
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.