Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error on linux mint 21.1 cinnamon #134

Open
rusbomber opened this issue May 25, 2023 · 3 comments
Open

Make error on linux mint 21.1 cinnamon #134

rusbomber opened this issue May 25, 2023 · 3 comments

Comments

@rusbomber
Copy link

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

@justin-stephenson
Copy link
Collaborator

Hi,

What version of Node JS is installed on your system?

@rusbomber
Copy link
Author

rusbomber commented May 31, 2023

v12.22.9

@justin-stephenson
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants