質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

680閲覧

Herokuデプロイ時にてPrecompiling assets failed.が解決できません

RThe

総合スコア25

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/12/15 18:17

編集2020/12/15 18:20

現在、Herokuへデプロイするためにgemのセットアップ、heroku createにてドメインを作成を済ませ、
デプロイしようとgit push heroku masterを打ったところ下記のエラーが出ました。(長くてすいません)

![イメージ説明]

恐らく、application.jsにてCannot find moduleとなっているために発生していると思うのですが、
解決の術がわかりませんでした。

大変お手数おかけしますが、git push heroku masteを成功させる方法をご教授頂けますでしょうか。

下記に該当する可能性のあるファイルを貼らせていただきます。

*application.js* // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. JavaScript code in this file should be added after the last require_* statement. // // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. // //= require rails-ujs //= require jquery //= require bootstrap //= require_tree .
*application.rb* require_relative 'boot' require 'rails/all' require 'csv' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module AApp class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. config.load_defaults 5.2 config.time_zone = 'Asia/Tokyo' config.i18n.default_locale = :ja config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s] # Settings in config/environments/* take precedence over those specified here. # Application configuration can go into files in config/initializers # -- all .rb files in that directory are automatically loaded after loading # the framework and any gems in your application. end end

宜しくお願い致します。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

no1knows

2020/12/16 01:32

エラーログ4行目付近のbabel-loaderでエラーがでているようですので、そのあたりを調べてみると良いのではないでしょうか?
RThe

2020/12/18 00:53

承知致しました。 ログを調べていくと同じバージョンのコードはすでにpush済であるとの記載がありました。 ローカルリポジトリにコミットしてからリモートリポジトリにpushしたら直りました!! お忙しい中お答え下さり、ありがとうございました。
guest

回答1

0

自己解決

ログを調べていくと同じバージョンのコードはすでにpush済であるとの記載がありましたので
ローカルリポジトリにコミットしてからリモートリポジトリにpushしたら直りました!!
お手数おかけしました。

投稿2020/12/18 00:54

RThe

総合スコア25

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問