我正在尝试将我的应用程序部署到heroku并不断遇到以下错误消息:
import java.util.*;
public class MainLinkedList {
public static void main(String[] args) {
LinkedList linkedList = new LinkedList();
linkedList.add(10);
linkedList.add(32);
linkedList.add(90);
linkedList.add(43);
linkedList.add(70);
linkedList.add(20);
linkedList.add(45);
int middle = linkedList.size()/2;
System.out.println(linkedList.get(middle));
我尝试使用rake aborted!
remote: Uglifier::Error: Unexpected token: name (rails)
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/uglifier-4.1.20/lib/uglifier.rb:234:in `parse_result'
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/uglifier-4.1.20/lib/uglifier.rb:216:in `run_uglifyjs'
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/uglifier-4.1.20/lib/uglifier.rb:168:in `compile'
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/compressing.rb:65:in `block in js_compressor='
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy_proc_processor.rb:31:in `call'
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_b36b00ce08c22f161edb02afae19ceef/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
...
Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote:
remote: !
remote: ! Precompiling assets failed.
广告手动预编译资产,并在以下github链接中实施建议:https://github.com/rails/webpacker/issues/739