Error when setting up ZAC

Hey,

I’m trying to setup ZAC on my Oracle’s Ubuntu VM and I’m hitting the error below when starting it :

file:///home/ubuntu/.ziti/quickstart/instance-20220723-2134/ziti-console/server.js:36
	ziti = await loadModule('@openziti/ziti-sdk-nodejs')
	       ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

loadModule isnt a const taking an async lambda function, can’t figure out what might be the probleme in here.

Regards,
Brandi

Hi Brandi,

Can you tell me what version of NodeJS is active in your environment?

Hi curt,

It’s 8.5.1

Brandi

Ah, we don’t support NodeJS versions that old. Can you upgrade to something in the v12 thru v18 range?

I’ve upgraded to v12.22.9, still have the same problem :confused:

I downgraded my node to v12.22.9 and see the same issue as Brandi. When I run with node v14.16.0 ZAC starts up with no issue.

1 Like

Switched to that version and it’s working, thanks

1 Like