Error: I ran bench watch and then bench build in production server .. Now showing errors

Dear Concern,
Desperately seeking help. I installed production mode of erpnext. Then i add a custom css file into the build.json. Thne ran bench watch and build. After that it is not working. Says following errors:

ReferenceError: Awesomplete is not defined

desk.min.js (line 5381, col 1)
TypeError: frappe.views.Factory is undefined

list.min.js (line 134, col 93)
TypeError: frappe.views.Factory is undefined

form.min.js (line 10, col 41)
TypeError: frappe.views.Factory is undefined

report.min.js (line 1, col 1)
TypeError: frappe.breadcrumbs is undefined

Before command it was ok.
I need help for this issue.
Thank You

1 Like

If you added custom stuff, try debugging on the browser. Maybe the build did not happen correctly?

Thank You . Here it shows the following messages when i ran bench watch/build:

Wrote ./assets/css/erpnext.css - 3kdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/awesomplete/awesomplete.min.jsdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/taggle/taggle.min.jsdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/summernote/summernote.jsdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/datepicker/datepicker.min.jsdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/datepicker/datepicker.en.jsWrote ./assets/js/libs.min.js - 641kWrote ./assets/js/erpnext-web.min.js - 4kdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/datepicker/datepicker.min.cssdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/awesomplete/awesomplete.cssdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/summernote/summernote.cssdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/css/kanban.cssWrote ./assets/css/desk.min.css - 245kdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/css/bootstrap-rtl.cssdid not find /home/frappe/frappe-bench/apps/frappe/frappe/public/css/desk-rtl.cssWrote ./assets/css/frappe-rtl.css - 0kWrote ./assets/css/module.min.css - 2

I didn’t change anything. Only added a custom css file.Now what should i do ?
Thank You