I have just installed ERPnext as production. When accessing the URL, once i login as administrator it just shows the below image. Does not start the company creation process/screen. I tried bench start, bench restart, digital ocean droplet power on/off options also. Please help.
Can you check frappe-bench/apps/frappe/node_modules directory available in your server, if yes run command yarn in frappe-bench folder and then bench build
yarn install v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
info Lockfile not saved, no dependencies.
Done in 0.16s.
Then ran bench build from the frappe-bench folder
I copied a portion of the output, as I keep crossing the word limit, its quite long
Wrote css/frappe-web.css - 65.11 KB
Cannot babelify /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/provide.js
ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "base" at 0, attempted to resolve relative to "/home/frappe/frappe-bench/sites"
at /home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (native)
at Function.normalisePlugins (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at babelify (/home/frappe/frappe-bench/apps/frappe/frappe/build.js:161:16)
at get_compiled_file (/home/frappe/frappe-bench/apps/frappe/frappe/build.js:148:18)
Cannot babelify /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/format.js
ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "base" at 0, attempted to resolve relative to "/home/frappe/frappe-bench/sites"
at /home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (native)
at Function.normalisePlugins (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/home/frappe/frappe-bench/apps/frappe/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
While going thru the error log, I found its an issue consistently popping up
ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "base" at 0, attempted to resolve relative to "/home/frappe/frappe-bench/sites"
I found this post and solution worked for me.
Not sure if this helped, I ran Bench build after the solution mentioned in the link above
npm WARN enoent ENOENT: no such file or directory, open ‘/home/package.json’
npm WARN home No description
npm WARN home No repository field.
npm WARN home No README data
npm WARN home No license field.
Issue not yet resolved. Thanks for the suggestion though.