thanks for the quick response.
the await gets added automatically while typing and if i dont place it, visual studio code gives a type error.
Property 'fileSync' does not exist on type 'Promise<{ default: typeof import(.../DEV/ImpPPXML/node_modules/@types/tmp/index"); file(options: FileOptions, cb: FileCallback): void; file(cb: FileCallback): void; ... 6 more ...; tmpdir: string; }>'.ts(2339)
main.ts(1115, 34): Did you forget to use 'await'?
i also can't transpile without the (await tmp)
Info: The script package from the folder 'C:/Users/switch/Dropbox/Switch/BackupSwitch/Scripts-XSLT/NodeJS/DEV/ImpPPXML' is packing
Error: Failed to transpile the code: TypeScript failed with exit code 2
Error: TypeScript standard output: ../../../../../../../AppData/Local/Temp/2/ImpPPXMLMvZEUq/ImpPPXML/main.ts(1284,30): error TS2339: Property 'fileSync' does not exist on type 'Promise<{ default: typeof import(/AppData/Local/Temp/2/ImpPPXMLMvZEUq/ImpPPXML/node_modules/@types/tmp/index"); file(options: FileOptionsDiscardFd, cb: FileCallbackNoFd): void; file(options: FileOptions, cb: FileCallback): void; file(cb: FileCallback): void; ... 6 more ...; tmpdir: string; }>'.
Error: Failed to encrypt the script package 'C:/Users/switch/AppData/Local/Temp/2/ImpPPXMLMvZEUq/ImpPPXML'
ps:
changing the mode Oo777 does not help. will get in touch with our IT partner.
i would expext a fs.unlinksync err when deleting is not possible?