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.