前提・実現したいこと
Ruby on Railsを使用してアプリを作成中なのですがherokuへgit push heroku masterした際にエラーが発生してしまい、解決できません。
デプロイを完了させてアプリを表示させたいです。
御助力お願いいたします。
発生している問題・エラーメッセージ
remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order remote: -----> Ruby app detected remote: -----> Installing bundler 2.2.11 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.6 remote: -----> Installing dependencies using bundler 2.2.11 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 remote: Fetching gem metadata from https://rubygems.org/............
remote: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@2.3.1: The platform "linux" is incompatible with this module. remote: info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [3/4] Linking dependencies... remote: warning " > vue-loader@15.9.6" has unmet peer dependency "css-loader@*". remote: [4/4] Building fresh packages... remote: Done in 33.77s. remote: yarn install v1.22.4 remote: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@2.3.1: The platform "linux" is incompatible with this module. remote: info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [3/4] Linking dependencies... remote: warning " > vue-loader@15.9.6" has unmet peer dependency "css-loader@*". remote: [4/4] Building fresh packages... remote: Done in 6.37s.
remote: Compiling... remote: Compilation failed: remote: CLI for webpack must be installed. remote: webpack-cli (https://github.com/webpack/webpack-cli) remote: remote: We will use "yarn" to install the CLI via "yarn add -D webpack-cli". remote: Do you want to install 'webpack-cli' (yes/no): 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 store-manual. remote: To https://git.heroku.com/store-manual.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/store-manual.git'
試してみた事
- git add .を行い、git commit -m "first commit"を行いgit pushしました。
- git push heroku <branchname>:mainというエラーが発生。
- herokuの中の登録しているappを削除し、再度heroku createその後アプリ名を変更した事による整合性を一致させる為、git remote rm herokuを行い、heroku git:remote -aを行いました。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー