-
Notifications
You must be signed in to change notification settings - Fork 34
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
TypeError: Cannot read properties of undefined (reading '0') using client.openSession(); #264
Comments
Hi @scott16lloyd! Which Node version you use? Seems that your error is caused by this change to Node's |
Also, seems somebody already stumbled at similar error, but the code wasn't properly fixed: nodejs/node#53089 |
Thank you for your reply @kravets-levko , I was running LTS version 20.16.0 so I tried 21.7.3 where I got: so I tried the current version 22.6.0 which did run my code but there is 2 deprecation warnings:
punycode warning seems to be an issue with eslint:
and the Buffer() issue seems to link to lz4:
I assume this is out of your control and we must wait for an update from eslint and lz4 but is it possible to create a version that will support an LTS version of Node? Or warn users that the current version must be used? |
@scott16lloyd Thank you for those details! I need to check if we can do anything on our side. I think upgrading |
I am getting the same error on newer Node JS versions (20.16.0) But the error goes away on an earlier version (18.18.2) |
Previously working code causing a
TypeError: Cannot read properties of undefined (reading '0')
. This code is from the following example: https://github.com/databricks/databricks-sql-nodejs/blob/HEAD/examples/usage.jsConsole output:
The only change made was adding:
to my next.config.js to prevent the following error:
The text was updated successfully, but these errors were encountered: