electron-typescript-example icon indicating copy to clipboard operation
electron-typescript-example copied to clipboard

create typeORM before electron main process init.

Open oceanlvr opened this issue 2 years ago • 2 comments

Dear dev, I have read this repo, and I found bellow code:

https://github.com/typeorm/electron-typescript-example/blob/cb27a927b730fbe6dbe08b744528a64a40bf9b57/src/index.ts#L14-L20

Actually, I want to use the database data like width and height to init BrowserWindow, Cloud I init TypeORM before we create BrowserWindow?


I try put init typeOrm before or after createWindow function, there always error like:

41901627717739_ pic

oceanlvr avatar Jul 31 '21 07:07 oceanlvr