i am getting this error in gcp cloud build (using ...
# general
v
i am getting this error in gcp cloud build (using docker builder then install nodejs) any idea what causing this?
Copy code
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
you’ll need to post some code for us to help debug
v
my code is pretty big and it works just fine locally
b
first result from google for your error: https://stackoverflow.com/questions/66586352/referenceerror-globalthis-is-not-defined update your
node
version
v
oh wow. i googled it and didnt find anything. thanks