i got 3 error in preloader.ts, i can't give you the error message but i can point out what is the cause.
first thing is you need to remember that preload script in electron is running in renderer process not in main process, but your tsconfig tell otherwise. you need to change the way you access global variable
it reference to a wrong global variable exports instead of globalThis, global or window. this is caused by your tsconfig moduleResolution that tells the typescript compiler to assume that it was a node module
i got 3 error in preloader.ts, i can't give you the error message but i can point out what is the cause.
first thing is you need to remember that preload script in electron is running in renderer process not in main process, but your tsconfig tell otherwise. you need to change the way you access global variable
first error appear here https://github.com/JezerM/nody-greeter/blob/b49016991ac5ed9b61555dccfd2e4b59a698348a/ts/preload.ts#L747
this _ready_event won't work because after being compiled it will use the wrong global variable.
if you see the compiled version it would be like below
it reference to a wrong global variable exports instead of globalThis, global or window. this is caused by your tsconfig moduleResolution that tells the typescript compiler to assume that it was a node module
the same apply with 2 other error https://github.com/JezerM/nody-greeter/blob/b49016991ac5ed9b61555dccfd2e4b59a698348a/ts/preload.ts#L682
https://github.com/JezerM/nody-greeter/blob/b49016991ac5ed9b61555dccfd2e4b59a698348a/ts/preload.ts#L713