Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wheatley opened this issue Oct 14, 2021 · 1 comment · Fixed by #2186
Closed

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

wheatley opened this issue Oct 14, 2021 · 1 comment · Fixed by #2186
Milestone

Comments

@wheatley
Copy link
Contributor

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 }

@wheatley wheatley changed the title Defect: Defect: [AdminUI] Error: Could not minify JavaScript file: web_ui_all Oct 14, 2021
@wheatley wheatley linked a pull request Oct 14, 2021 that will close this issue
@wheatley
Copy link
Contributor Author

Resolved in latest merge #2186

@bcoles bcoles added this to the 0.5.4.0-alpha milestone Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants