pistazie / cdk-dia

Automated diagrams of CDK provisioned infrastructure
MIT License
896 stars 38 forks source link

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

Open andreprawira opened 9 months ago

andreprawira commented 9 months ago

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?