Blank page after login and no access to "my Settings"

I did my first install

I tried to follow the wizard to setup the company,
but only the [E] appears on the desk.
Website seems ok, but returning to Desk, nothing works.

In the ls console I get this error:
Uncaught TypeError: moment$1 is not a function
_ at new datetime (chat.js:100)_
_ at Object.frappe.datetime.now (chat.js:140)_
_ at Logger.log (chat.js:561)_
_ at Logger.info (chat.js:556)_
_ at Object.frappe.chat.setup (chat.js:2706)_
_ at HTMLDocument. (chat.js:2759)_
_ at HTMLDocument.dispatch (jquery.min.js:3)_
_ at HTMLDocument.r.handle (jquery.min.js:3)_
_ at Object.trigger (jquery.min.js:4)_
_ at n.fn.init.triggerHandler (jquery.min.js:_4)

The β€œAbout” function in the menu works and shows:

Installed Apps
ERPNext: v11.x.x-develop (b1036e5) (develop)

Frappe Framework: v11.x.x-develop (2f1f174) (develop)

may be I need Stable or Production instead of develop?

Hello @lernlink

Can you check java script console any traceback ?

First take latest pull ERPNext and frappe branch under the develop branch.
Performed below command:

bench migrate
bench clear-cache
bench start

Thanks :slight_smile:

I am so happy about your reply!

When execute

bench migrate
bench clear-cache
bench build
bench start

I geth the following Error in bash:

_$> bench build

frappe@ production /opt/bench/erpnext/apps/frappe
FRAPPE_ENV=production node rollup/build.js

Production mode
βœ” Built js/libs.min.js
(node:4357) UnhandledPromiseRejectionWarning: TypeError: uglify is not a function
    at get_rollup_options_for_js (/opt/bench/erpnext/apps/frappe/rollup/config.js:48:17)
    at get_rollup_options (/opt/bench/erpnext/apps/frappe/rollup/config.js:25:10)
    at Object.keys.map.output_file (/opt/bench/erpnext/apps/frappe/rollup/config.js:139:5)
    at Array.map (<anonymous>)
    at get_options_for (/opt/bench/erpnext/apps/frappe/rollup/config.js:127:4)
    at build_assets (/opt/bench/erpnext/apps/frappe/rollup/build.js:32:18)
    at /opt/bench/erpnext/apps/frappe/rollup/build.js:27:30
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:695:11)
(node:4357) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4357) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

is there a hint for missing installation in this error message?
during install, I had to install a nummer of missing pyton modules.

and the console JS shows an error in the browser js console:
(isn’t this what you call traceback ? tech me how to see traceback)

chat.js:100 Uncaught TypeError: moment$1 is not a function
at new datetime (chat.js:100)
at Object.frappe.datetime.now (chat.js:140)
at Logger.log (chat.js:561)
at Logger.info (chat.js:556)
at Object.frappe.chat.setup (chat.js:2706)
at HTMLDocument. (chat.js:2759)
at HTMLDocument.dispatch (jquery.min.js:3)
at HTMLDocument.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:4)
at HTMLDocument. (jquery.min.js:4)

Hello @lernlink,

I think you have to Setup the missing required library, try below command to setup it.

bench update --requirements

then

Thanks

1 Like

and this did the job,
after
bench update --requirements
bench migrate
bench clear-cache
bench build

I got the lovely list of success:

> frappe@ production /opt/bench/erpnext/apps/frappe
> FRAPPE_ENV=production node rollup/build.js

Production mode
βœ” Built js/libs.min.js

Building frappe assets...

βœ” Built js/print_format_v3.min.js
βœ” Built css/module.min.css
βœ” Built css/form.min.css
βœ” Built frappe/css/email.css
βœ” Built js/web_form.min.js
βœ” Built js/dialog.min.js
βœ” Built css/frappe-rtl.css
βœ” Built css/web_form.css
βœ” Built css/report.min.css
βœ” Built js/frappe-web.min.js
βœ” Built css/list.min.css
βœ” Built css/frappe-web.css
βœ” Built js/report.min.js
βœ” Built js/form.min.js
βœ” Built js/list.min.js
βœ” Built js/control.min.js
βœ” Built js/desk.min.js
βœ” Built css/desk.min.css
✨  Done in 39.869s

Building erpnext assets...

βœ” Built js/erpnext-web.min.js
βœ” Built js/item-dashboard.min.js
βœ” Built css/erpnext.css
βœ” Built js/erpnext.min.js
✨  Done in 1.773s

and a final
bench restart

made my day!

Thank you so much.