-
Notifications
You must be signed in to change notification settings - Fork 346
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
Webex SDK 3.0.0 not compatible with any version of NodeJS #3510
Comments
Two things:
Regarding item 1:
When unpacked it looks like this (and 1st condition matches in node21):
Later on this file mock some methods on a phony
Regarding item 2: The lack of updates is a bummer, however, there might be fixes coming from node patches itself. The now-term solution is back down a version |
Thank you for your in depth analysis. However, I am not sure downgrading to any version of node works. I noticed this navigator error on v20+, but all versions below 20 all the way down to 12 we're also failing to startup as well (tested using volta). When you proposed the 'now-term' solution of downgrading, were you referring to downgrading node, or the package itself back to |
@Tiuipuv I'm realizing your error is slightly different: Your issue: issues about window object in many versions of node as you stated Other issue: globalThis.navigator only occurs in node 21+ They seem related but curious what the maintainers of this library think, but maybe it's smart to split this into separate issues |
#2242 another issue exists for |
@Tiuipuv thanks for reporting this issue. We have also observed this internally and are currently looking into this. Will provide updates once we have a chance to identify where the root cause is. Just another note that at this time, we haven't tested all the features of the JS SDK with Node 18 and above. Our applications are running Node 16 and consuming the SDK. |
Tagging @ricardocasares as well from #2242 |
Hey folks, I did some testing and here's a workaround you'll can use to continue testing. I tested this locally and was able to run it on Node 16, 18 and 20 to establish a successful registration with
This requirement of |
@sreenara there is a need to discuss about how to ship non browser package efficiently + testing |
Thank you for the quick movement on this issue. Looking forward to a solution. The above workaround, with setting |
Marking this as a
|
Is this still worked on? No fix since 3 months. |
@enyineer yes, we are planning to add support for NodeJS. The team will get to this in a month or so.
The Webex JS SDK can be compiled with Node 20 without any issues. |
@sreenara until it's fixed I've unpublished our node.js doc since the instructions don't actually work. |
An update on this one. Developers can use the jsdom-global package in their applications to avoid hitting the problem while initializing the
|
Are there any news if the Webex SDK 3.0.0 will work on Node 22 when it enters Long Term Support on October? |
@baranork We haven't tested it on Node 22 yet. Are there any differences between Node 20 and 22 which you feel will be a concern? |
So far my testing shows that v22 should work for basic tasks, such as room info, post message, etc. However, it is worth noting with the later versions of webex js sdk (
This is including the workaround of adding |
Describe the bug
The following script fails to initialize in NodeJS:
Yielding the following error:
This has been tested with nodejs
v12
,v14
,v16
,v18
, andv20
.package.json:
This error is produced for both ESM modules and CommonJS scripts.
To Reproduce
Steps to reproduce the behavior:
npm init
npm install webex
index.js
, with the above code (enter valid bot id)node index.js
Expected behavior
Webex SDK successfully imports into script.
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: