Hello, I have been working with node oracle db for some time in javascript but would like to switch to typescript. I did not manage to make it work so far.
> oracledb_typescript@1.0.0 start
> node dist/app.js
win32
v16.17.0
x64
5.4.0
21.6.0.0.0
TypeError: OracleDB.getConnection is not a function
at run (C:\maret\Spherea\GTSI\Software\POC\oracledb_typescript\dist\app.js:34:37)
at Object.<anonymous> (C:\maret\Spherea\GTSI\Software\POC\oracledb_typescript\dist\app.js:54:1)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Hello, I have been working with node oracle db for some time in javascript but would like to switch to typescript. I did not manage to make it work so far.
Running this js script:
gives this output:
Building and running the following typescript script:
gives this output:
This is my package.json:
And this is my tsconfig.json:
Could you please provide support?