Hi Folks,
I have installed erpnext on Ubuntu 20.0 and currently using Node 12.x LTS. I am frequently getting below error when i compile the assets using bench build
:
$:~/frappe-bench/apps/frappe$ bench build
yarn run v1.22.5
$ FRAPPE_ENV=production node rollup/build.js
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js
Building frappe assets...
CompileError: Transforming async functions is not implemented. Use `transforms: { asyncAwait: false }` to skip transformation and disable this error. (16:10)
12 : boot: {
13 : lang: 'en'
14 : },
15 : _assets_loaded: [],
16 : require: async function(links, callback) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
✔ Built js/frappe-web.min.js
CompileError: Transforming async functions is not implemented. Use `transforms: { asyncAwait: false }` to skip transformation and disable this error. (619:22)
615 : get_default_outgoing_email_account_signature: function() {
616 : return frappe.db.get_value('Email Account', { 'default_outgoing': 1, 'add_signature': 1 }, 'signature');
617 : },
618 :
619 : setup_earlier_reply: async function() {
Above compilation error is preventing from assets to load for login screen. So i could not login even first time to ERPNext.
I tried using nodejs version 10.x as well, but result is same.
Please suggest how should we go about it, thanks.