Pluralith / pluralith-cli

A tool for Terraform state visualisation and automated generation of infrastructure documentation
https://www.pluralith.com
Mozilla Public License 2.0
789 stars 51 forks source link

TypeError: Cannot read properties of undefined (reading 'replaceAll') #104

Closed teddimitrov closed 1 year ago

teddimitrov commented 1 year ago

Windows 11, binary has been renamed and moved to Windows\System32 per the docs.

When I try to execute in a folder with terraform files it results in this:

pluralith.exe graph

Render graph and export PDF

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

TypeError: Cannot read properties of undefined (reading 'replaceAll')
    at C:\snapshot\pluralith-cli-graphing\dist\build\commands\Graph.js
    at Generator.next (<anonymous>)
    at C:\snapshot\pluralith-cli-graphing\dist\build\commands\Graph.js
    at new Promise (<anonymous>)
    at C:\snapshot\pluralith-cli-graphing\dist\build\commands\Graph.js
    at Graph (C:\snapshot\pluralith-cli-graphing\dist\build\commands\Graph.js)
    at C:\snapshot\pluralith-cli-graphing\dist\build\index.js
    at Generator.next (<anonymous>)
    at C:\snapshot\pluralith-cli-graphing\dist\build\index.js
    at new Promise (<anonymous>)
ChipRab commented 1 year ago

I have the exact same issue.

marcopalumbo commented 1 year ago

Same here

DanThePutzer commented 1 year ago

Thanks for reporting everyone! I've got a rough idea of what it could be. Will report back with a fix soon 👌

DanThePutzer commented 1 year ago

@teddimitrov @ChipRab @marcopalumbo we just released a new version of the graphing module that should fix this issue. If you simply run pluralith again, the latest version of the module should be installed and you should get a diagram 👍

Let me know how it goes!

marcopalumbo commented 1 year ago

@DanThePutzer the new version fixed the issue... BTW now I'm getting a 'self signed certificate in certificate chain' error and I guess is due to SSL inspection by company firewall

I'll open a new issue on that

DanThePutzer commented 1 year ago

@marcopalumbo I'll close this one and jump over to the new issue!