Cannot go to desk after fresh install

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.

image

But i can go to my acccount page.

@kothagunda

Can you share the screenshots of browser’s console log?

Hi,
I got the error too, here is the error console log

Uncaught SyntaxError: Unexpected token !
list.min.js?ver=1519641882.0:1 Uncaught TypeError: Cannot set property 'listing' of undefined
    at list.min.js?ver=1519641882.0:1
(anonymous) @ list.min.js?ver=1519641882.0:1
form.min.js?ver=1519641882.0:1 Uncaught TypeError: Cannot set property 'grid_form' of undefined
    at form.min.js?ver=1519641882.0:1
(anonymous) @ form.min.js?ver=1519641882.0:1
control.min.js?ver=1519641882.0:1 Uncaught TypeError: Cannot set property 'Capture' of undefined
    at control.min.js?ver=1519641882.0:1
(anonymous) @ control.min.js?ver=1519641882.0:1
report.min.js?ver=1519641882.0:4 Uncaught TypeError: Cannot read property 'Factory' of undefined
    at report.min.js?ver=1519641882.0:4
(anonymous) @ report.min.js?ver=1519641882.0:4
erpnext.min.js?ver=1519641882.0:815 Uncaught SyntaxError: Unexpected identifier

@bibinqcs

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

Below is the screenshot

We have run the below commands to install

    1. apt-get install python-minimal
2. apt-get install build-essential python-setuptools
3. wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py 
4. python install.py --production --user frappe

I checked the folder is present

I ran the yarn command

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 :sweat_smile:

 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

@kothagunda Hope this helps
@rohit_w Thanks for the help

@bibinqcs I got below error when i ran the commands

root@fpo-staging:/home/frappe/frappe-bench# sudo npm install babel-preset-env^C
root@fpo-staging:/home/frappe/frappe-bench# sudo npm install babel-plugin-transform-object-rest-spread^C

ERROR

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.

I did a bench build and bench restart.
Now its working.
Thankyou @bibinqcs @rohit_w

1 Like