https://pulumi.com logo
Title
v

victorious-dusk-75271

07/18/2022, 2:59 PM
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

07/18/2022, 3:04 PM
you’ll need to post some code for us to help debug
v

victorious-dusk-75271

07/18/2022, 3:04 PM
my code is pretty big and it works just fine locally
b

billowy-army-68599

07/18/2022, 3:07 PM
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

07/18/2022, 3:09 PM
oh wow. i googled it and didnt find anything. thanks