Error while update to Latest version of ERPNext

Hello Team,

I got below error while updating ERPNext to latest version at time of bench build. let me know if you have any idea about how to resolve it.

yarn run v1.22.10
$ FRAPPE_ENV=production node rollup/build.js
Production mode
/home/frappe/frappe-bench/apps/frappe/rollup/build.js:78
const files_to_concat = Object.keys(get_build_json(‘frappe’))
^

TypeError: Cannot convert undefined or null to object
at Function.keys ()
at concatenate_files (/home/frappe/frappe-bench/apps/frappe/rollup/build.js:78:33)
at Object. (/home/frappe/frappe-bench/apps/frappe/rollup/build.js:24:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

I have successfully regenerated frappe JS files but not able to regenerate erpnext files. Some problem of getting app_list array from apps.txt. I am getting array like [ ‘frappe\r’, ‘erpnext’ ] this and due to “\r” public path is not getting proper.

Help would be appericiated.

I have replaced text and remove \r from frappe and it resolved my problem for reaerating js/css files for ERPNext.

Thanks

Just came here to say thank you very @Harsh_Mehta!! I’ve been struggling with this bench build error for ages!!

1 Like

Most Welcome.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.