Skip to content
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 set property navigator of #<Object> which has only a getter #3393

Closed
matgayno opened this issue Feb 22, 2024 · 2 comments
Closed
Labels
bug Bug

Comments

@matgayno
Copy link

matgayno commented Feb 22, 2024

Describe the bug
Importing the SDK into NodeJS results in the following issue:

node_modules/@webex/internal-media-core/dist/cjs/index.js:288
        commonjsGlobal.navigator = {
                                 ^

TypeError: Cannot set property navigator of #<Object> which has only a getter
    at /node_modules/@webex/internal-media-core/dist/cjs/index.js:288:34
    at /node_modules/@webex/internal-media-core/dist/cjs/index.js:313:7
    at /node_modules/@webex/internal-media-core/dist/cjs/index.js:1395:5
    at Object.<anonymous> (/node_modules/@webex/internal-media-core/dist/cjs/index.js:1396:3)
    at Module._compile (node:internal/modules/cjs/loader:1378:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
    at Module.load (node:internal/modules/cjs/loader:1212:32)
    at Module._load (node:internal/modules/cjs/loader:1028:12)
    at Module.require (node:internal/modules/cjs/loader:1237:19)
    at require (node:internal/modules/helpers:176:18)

Node.js v21.6.1

Tested both using import statement and require statement in commonjs and module types.

To Reproduce
Create a blank project on MacOS 14.3 M2 Pro Node 21.6.1
Install Webex SDK and import SDK into a file
Execute the file

Platform (please complete the following information):

  • OS: MacOS 14.3
  • Node 21.6.1
  • Device Type Macbook Pro M2 Pro
@matgayno matgayno added the bug Bug label Feb 22, 2024
@jbenyovs
Copy link

@matgayno please note, that the newest version of Node JS is not yet supported. Please test the same with older Node versions, like 12.x or 14.x . It should work with those.

@matgayno
Copy link
Author

matgayno commented Feb 22, 2024

Moving to 18.18.0 sorted it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants