pistazie / cdk-dia

Automated diagrams of CDK provisioned infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

throw new Error('Unable to calculate a unique id for an empty set of components')

andreprawira opened this issue · comments

I'm using windows 10 on my machine and i was able to run both npm install cdk-dia -g and install graphviz. however, when i try to run cdk-dia on my CDK Python Project, i'm getting this error

Error: Unable to calculate a unique id for an empty set of components
C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\node_modules\@aws-cdk\core\lib\private\uniqueid.js:33
        throw new Error('Unable to calculate a unique id for an empty set of components');
              ^

Error: Unable to calculate a unique id for an empty set of components
    at makeUniqueId (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\node_modules\@aws-cdk\core\lib\private\uniqueid.js:33:15)
    at AwsEdgeResolver.findUniqueResourceId (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\aws\aws-edge-resolver.js:83:44)     
    at C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\aws\aws-edge-resolver.js:55:47
    at DiagramComponent.subTreeFindComponentRec (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\component\component.js:137:13)  
    at DiagramComponent.subTreeFindComponent (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\component\component.js:134:21)     
    at C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\component\component.js:140:23
    at Array.map (<anonymous>)
    at DiagramComponent.subTreeFindComponentRec (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\component\component.js:139:40)  
    at DiagramComponent.subTreeFindComponent (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\component\component.js:134:21)     
    at AwsEdgeResolver.findTargetComponent (C:\Users\andre\AppData\Roaming\npm\node_modules\cdk-dia\dist\src\diagram\aws\aws-edge-resolver.js:54:47)      

Node.js v18.18.0

Any idea why its doing it?