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

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

Open
andreprawira opened this issue Mar 1, 2024 · 0 comments

Comments

@andreprawira
Copy link

andreprawira commented Mar 1, 2024

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?

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

1 participant