-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using v5.3 with typescript > 4.3.x brings error "Cannot read properties of undefined (reading '_initOracleClient')" #1462
Comments
|
@cjbj I do not understand. When I remove the import of "initOracleClient" I am not able to compile the typescript code.... |
You could help us by:
|
@maku never mind; I just spent some Saturday time and reproduced it. @anthony-tuininga supplied a patch that resolves it for us.
Try putting that in a .patch file installed via a postInstall script in your package.json, see #1391 (comment). Thanks for reporting the issue. |
Closing the issue. The fix was in the node-oracledb 5.4 release from back in June. Thanks for reporting it. |
Give your database version:
Oracle Database 18c Standard Edition 2 Release 18.0.0.0.0 - Production
Also run Node.js and show the output of:
Is it an error or a hang or a crash?
error
What error(s) or behavior you are seeing?
oracledb.js -> function initOracleClient -> Line 144 this is undefined
Uncaught TypeError: Cannot read properties of undefined (reading '_initOracleClient')
The same functionality works with typescript <= 4.3.x, with typescript >= 4.4 I get the error
example typescript code:
The text was updated successfully, but these errors were encountered: