Try ERPNext Buy Support Partners Foundation

Bench build error after switching v12

Hi, i am unable to run “bench build” command after switching v12.

home/frappe/frappe-bench/apps/frappe/rollup/config.js:129
					...get_options_for_scss(),
					^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/frappe/frappe-bench/apps/frappe/rollup/build.js:18:5)
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c FRAPPE_ENV=production node rollup/build.js
Directory: /home/frappe/frappe-bench/apps/frappe
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/home/frappe/frappe-bench/apps/frappe/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I found similliar issues:

Thanks for help.

Ubuntu 16.04.4 LTS
npm 3.10.10
yarn v1.5.1

It may help to say what the OS is and what versions of node and npm and yarn.

Thanks, i updated post.

On a Bionic instance here ,

ERPNext: v12.14.0
Frappe v12.12.0
npm 7.0.14
yarn 1.22.5
nodejs v15.3.0

I don’t know if upgrading will help, but worth a try?

1 Like

Wow Thanks. Upgrading nodejs was solution:

I used commands:

sudo apt-get install -y nodejs
sudo apt install -y nodejs yarn

I though that nodejs is upgraded after running command:
bench setup requirements

Thank you very much