https://pulumi.com logo
#google-cloud
Title
# google-cloud
l

late-printer-99022

01/30/2022, 10:30 AM
How to fix this?
Copy code
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

01/31/2022, 2:57 PM
Can you share your code?
o

orange-policeman-59119

02/01/2022, 7:52 AM
@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
?