Skip to content

Defect: [AdminUI] Error: Could not minify JavaScript file: web_ui_all #2185

@wheatley

Description

@wheatley

When starting beef the following is displayed

[ 8:46:15][!] [AdminUI] Error: Could not minify JavaScript file: web_ui_all
388
[ 8:46:15] |_ [AdminUI] Ensure nodejs is installed and node' is in $PATH` !

When investing the error there is a requirement for harmony: true to be set for ES6 js.

add this to the opts hash passed to the compiler will resolve this issue

opts = {
:output => {
:comments => :none
},
:compress => {
:dead_code => true,
}
}

ruby opts = { :output => { :comments => :none }, :compress => { :dead_code => true, }, harmony: true }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions