Thread
#general
    v

    victorious-dusk-75271

    2 months ago
    i am getting this error in gcp cloud build (using docker builder then install nodejs) any idea what causing this?
    error: Running program '/workspace/infrastructure' failed with an unhandled exception:
    ReferenceError: globalThis is not defined
        at new Stack (/workspace/infrastructure/node_modules/@pulumi/runtime/stack.ts:66:9)
        at Object.runInPulumiStack (/workspace/infrastructure/node_modules/@pulumi/runtime/stack.ts:45:23)
        at Object.run (/workspace/infrastructure/node_modules/@pulumi/cmd/run/run.ts:373:20)
        at v8Hooks.isInitializedAsync.then (/workspace/infrastructure/node_modules/@pulumi/cmd/run/index.ts:160:57)
        at process._tickCallback (internal/process/next_tick.js:68:7)
        at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
        at startup (internal/bootstrap/node.js:283:19)
        at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
    b

    billowy-army-68599

    2 months ago
    you’ll need to post some code for us to help debug
    v

    victorious-dusk-75271

    2 months ago
    my code is pretty big and it works just fine locally
    b

    billowy-army-68599

    2 months ago
    first result from google for your error:https://stackoverflow.com/questions/66586352/referenceerror-globalthis-is-not-defined update your
    node
    version
    v

    victorious-dusk-75271

    2 months ago
    oh wow. i googled it and didnt find anything. thanks