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

Cannot set property navigator of #<Object> which has only a getter #237

Open
tombeteende opened this issue Nov 19, 2023 · 3 comments
Open

Comments

@tombeteende
Copy link

I'm running cfn-dia locally (even help) and getting the following error -

os - Mac OS
node version - Node.js v21.1.0

/opt/homebrew/lib/node_modules/@mhlabs/cfn-diagram/graph/MxGenerator.js:25
global.navigator = window.navigator;
                 ^

TypeError: Cannot set property navigator of #<Object> which has only a getter
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/@mhlabs/cfn-diagram/graph/MxGenerator.js:25:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/@mhlabs/cfn-diagram/commands/draw.io/index.js:2:21)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
@V4G4X
Copy link

V4G4X commented Apr 5, 2024

bump

ljacobsson added a commit that referenced this issue Apr 19, 2024
@ljacobsson
Copy link
Owner

Sorry for the delay from my end. Been through a busy period at work, but this should now be fixed as of v1.1.39

@tombeteende
Copy link
Author

Thank you, will check, hope you are better bow

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

No branches or pull requests

3 participants