Thread
#gcp
    l

    late-printer-99022

    7 months ago
    How to fix this?
    Type                 Name                      Plan     Info
         pulumi:pulumi:Stack  codma-app-gcp-codma-prod           2 errors
    
    Diagnostics:
      pulumi:pulumi:Stack (codma-app-gcp-codma-prod):
        error: Running program '/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app' failed with an unhandled exception:
        TypeError: Cannot read properties of undefined (reading 'length')
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/kubernetesx/kx.js:225:25
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:383:31
            at Generator.next (<anonymous>)
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:21:71
            at new Promise (<anonymous>)
            at __awaiter (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:17:12)
            at applyHelperAsync (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:229:12)
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:302:65
            at processTicksAndRejections (node:internal/process/task_queues:96:5)
        error: Running program '/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app' failed with an unhandled exception:
        TypeError: Cannot read properties of undefined (reading 'length')
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/kubernetesx/kx.js:225:25
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:383:31
            at Generator.next (<anonymous>)
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:21:71
            at new Promise (<anonymous>)
            at __awaiter (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:17:12)
            at applyHelperAsync (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:229:12)
            at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:302:65
            at processTicksAndRejections (node:internal/process/task_queues:96:5)
    w

    witty-candle-66007

    7 months ago
    Can you share your code?
    o

    orange-policeman-59119

    7 months ago
    @late-printer-99022 I found a few instances of ".length" that could be what you're running into: Are you creating a container in a deployment with an undefined or absent
    env
    , or
    ports
    ? A service with an undefined or absent
    ports
    ?