cockpit-session-recording icon indicating copy to clipboard operation
cockpit-session-recording copied to clipboard

Make error on linux mint 21.1 cinnamon

Open rusbomber opened this issue 2 years ago • 3 comments

make NODE_ENV= ./build.js file:///home/admini/git/cockpit-session-recording/build.js:18 const esbuild = (await import(useWasm ? 'esbuild-wasm' : 'esbuild')).default; ^^^^^

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) make: *** [Makefile:85: dist/manifest.json] Error 1

rusbomber avatar May 25 '23 12:05 rusbomber

Hi,

What version of Node JS is installed on your system?

justin-stephenson avatar May 30 '23 19:05 justin-stephenson

v12.22.9

rusbomber avatar May 31 '23 10:05 rusbomber

It seems the import declaration is supported in Node JS 13.2.0 and higher. You could try building with the v12 release. A majority of the changes in the latest release are build related changes, no new functionality in the module itself.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

justin-stephenson avatar May 31 '23 13:05 justin-stephenson