###問題・エラー
ローカル環境で完成したものをherokuにプッシュしようとしました。
ですが、下記のようにデプロイ中にエラーが発生しました。
:uglifier:Symbol
というのはどうゆうものなのでしょうか。
エラーの原因はこちらなのでしょうか。。。
(略) Bundle complete! 30 Gemfile dependencies, 130 gems now installed. remote: Gems in the groups development and test were not installed. remote: Bundled gems are installed into `./vendor/bundle` remote: Post-install message from autoprefixer-rails: remote: autoprefixer-rails was deprected. Migration guide: remote: https://github.com/ai/autoprefixer-rails/wiki/Deprecated remote: Post-install message from fog: remote: ------------------------------ remote: Thank you for installing fog! remote: remote: IMPORTANT NOTICE: remote: If there's a metagem available for your cloud provider, e.g. `fog-aws`, remote: you should be using it instead of requiring the full fog collection to avoid remote: unnecessary dependencies. remote: remote: 'fog' should be required explicitly only if: remote: - The provider you use doesn't yet have a metagem available. remote: - You require Ruby 1.9.3 support. remote: ------------------------------ remote: Bundle completed (18.24s) remote: Cleaning up the bundler cache. remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. remote: -----> Installing node-v12.16.2-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: NoMethodError: undefined method `new' for :uglifier:Symbol remote: /tmp/build_f6256d5c/config/environments/production.rb:26:in `block in <main>' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/railtie.rb:216:in `instance_eval' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/railtie.rb:216:in `configure' remote: /tmp/build_f6256d5c/config/environments/production.rb:1:in `<main>' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' (略) remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define' remote: Tasks: TOP => environment remote: (See full trace by running task with --trace) remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to totologstore. remote: To https://git.heroku.com/totologstore.git ! [remote rejected] master -> master (pre-receive hook declined)
config/environments/production.rb config.assets.js_compressor = :uglifier.new(harmony: true)
###追加エラー
Installing node-v12.16.2-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: Yarn executable was not detected in the system. remote: Download Yarn at https://yarnpkg.com/en/docs/install remote: I, [2020-09-25T09:50:01.782784 #524] INFO -- : Writing /tmp/build_aef7b381/public/assets/application-0e6021ace7b6e1b679b5d7586cb8d657bda03b6e0513de162e01362f406fea55.js remote: I, [2020-09-25T09:50:01.783242 #524] INFO -- : Writing /tmp/build_aef7b381/public/assets/application-0e6021ace7b6e1b679b5d7586cb8d657bda03b6e0513de162e01362f406fea55.js.gz remote: rake aborted! remote: NoMethodError: undefined method `[]' for nil:NilClass remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:278:in `sprockets_context' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:124:in `asset_path' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:200:in `font_path' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:151:in `block in _perform' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:108:in `block in with_function' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:108:in `with_function' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:149:in `_perform' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:412:in `visit_return' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `block in visit' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `block in with_base' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame' remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。