Railsアプリをherokuへデプロイしたいのですが
git push heroku main
を行うと、下記のようなメッセージが表示され、デプロイに失敗しております。
手がかりなどご教授いただきたいです。
よろしくお願いいたします。
terminal
1-----> Building on the Heroku-20 stack 2-----> Using buildpack: heroku/ruby 3-----> Ruby app detected 4-----> Installing bundler 2.2.11 5-----> Removing BUNDLED WITH version in the Gemfile.lock 6-----> Compiling Ruby/Rails 7-----> Using Ruby version: ruby-2.7.2 8-----> Installing dependencies using bundler 2.2.11 9Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 10Fetching gem metadata from https://rubygems.org/............ 11#gemのインストール部分につき省略 12Bundle complete! 36 Gemfile dependencies, 88 gems now installed. 13Gems in the groups development and test were not installed. 14Bundled gems are installed into `./vendor/bundle` 15Post-install message from sass: 16 17Ruby Sass has reached end-of-life and should no longer be used. 18Bundle completed (269.44s) 19Cleaning up the bundler cache. 20-----> Installing node-v12.16.2-linux-x64 21-----> Installing yarn-v1.22.4 22-----> Detecting rake tasks 23-----> Preparing app for Rails asset pipeline 24Running: rake assets:precompile 25yarn install v1.22.4 26[1/4] Resolving packages... 27[2/4] Fetching packages... 28info fsevents@2.3.1: The platform "linux" is incompatible with this module. 29info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. 30info fsevents@1.2.13: The platform "linux" is incompatible with this module. 31info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 32[3/4] Linking dependencies... 33warning " > webpack-dev-server@3.11.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 34warning "webpack-dev-server > webpack-dev-middleware@3.7.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 35[4/4] Building fresh packages... 36Done in 31.04s. 37I, [2021-03-17T14:35:34.476813 #1378] INFO -- : Writing /tmp/build_05b2173c/public/assets/bootstrap/glyphicons-halflings-regular-.ttf 38I, [2021-03-17T14:35:34.477549 #1378] INFO -- : Writing /tmp/build_05b2173c/public/assets/bootstrap/glyphicons-halflings-regular-.ttf.gz 39I, [2021-03-17T14:35:34.481740 #1378] INFO -- : Writing /tmp/build_05b2173c/public/assets/bootstrap/glyphicons-halflings-regular-.svg 40I, [2021-03-17T14:35:34.482594 #1378] INFO -- : Writing /tmp/build_05b2173c/public/assets/bootstrap/glyphicons-halflings-regular-.svg.gz 41Compiling… 42Compilation failed: 43ModuleNotFoundError: Module not found: Error: Can't resolve 'jQuery' in '/tmp/build_05b2173c/app/javascript' 44at /tmp/build_05b2173c/node_modules/webpack/lib/Compilation.js:925:10 45at /tmp/build_05b2173c/node_modules/webpack/lib/NormalModuleFactory.js:401:22 46at /tmp/build_05b2173c/node_modules/webpack/lib/NormalModuleFactory.js:130:21 47at /tmp/build_05b2173c/node_modules/webpack/lib/NormalModuleFactory.js:224:22 48at /tmp/build_05b2173c/node_modules/neo-async/async.js:2830:7 49at /tmp/build_05b2173c/node_modules/neo-async/async.js:6877:13 50at /tmp/build_05b2173c/node_modules/webpack/lib/NormalModuleFactory.js:214:25 51at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:213:14 52at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 53at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1) 54at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7 55at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 56at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1) 57at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 58at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1) 59at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43 60at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 61at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:26:1) 62at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/ModuleKindPlugin.js:30:40 63at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 64at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1) 65at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 66at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1) 67at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/forEachBail.js:30:14 68at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 69at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1) 70at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7 71at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 72at eval (eval at create (/tmp/build_05b2173c/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1) 73at /tmp/build_05b2173c/node_modules/enhanced-resolve/lib/Resolver.js:285:5 74resolve 'jQuery' in '/tmp/build_05b2173c/app/javascript' 75Parsed request is a module 76using description file: /tmp/build_05b2173c/package.json (relative path: ./app/javascript) 77Field 'browser' doesn't contain a valid alias configuration 78resolve as module 79looking for modules in /tmp/build_05b2173c/app/javascript 80using description file: /tmp/build_05b2173c/package.json (relative path: ./app/javascript) 81Field 'browser' doesn't contain a valid alias configuration 82using description file: /tmp/build_05b2173c/package.json (relative path: ./app/javascript/jQuery) 83no extension 84Field 'browser' doesn't contain a valid alias configuration 85/tmp/build_05b2173c/app/javascript/jQuery doesn't exist .mjs 86Field 'browser' doesn't contain a valid alias configuration 87/tmp/build_05b2173c/app/javascript/jQuery.mjs doesn't exist .js 88Field 'browser' doesn't contain a valid alias configuration 89/tmp/build_05b2173c/app/javascript/jQuery.js doesn't exist .sass 90Field 'browser' doesn't contain a valid alias configuration 91/tmp/build_05b2173c/app/javascript/jQuery.sass doesn't exist .scss 92Field 'browser' doesn't contain a valid alias configuration 93/tmp/build_05b2173c/app/javascript/jQuery.scss doesn't exist .css 94Field 'browser' doesn't contain a valid alias configuration 95/tmp/build_05b2173c/app/javascript/jQuery.css doesn't exist .module.sass 96Field 'browser' doesn't contain a valid alias configuration 97/tmp/build_05b2173c/app/javascript/jQuery.module.sass doesn't exist .module.scss 98Field 'browser' doesn't contain a valid alias configuration 99/tmp/build_05b2173c/app/javascript/jQuery.module.scss doesn't exist .module.css 100Field 'browser' doesn't contain a valid alias configuration 101/tmp/build_05b2173c/app/javascript/jQuery.jpg doesn't exist as directory 102/tmp/build_05b2173c/app/javascript/jQuery doesn't exist 103/tmp/build_05b2173c/app/javascript/node_modules doesn't exist or is not a directory 104/tmp/build_05b2173c/app/node_modules doesn't exist or is not a directory 105/tmp/node_modules doesn't exist or is not a directory 106/node_modules doesn't exist or is not a directory 107looking for modules in /tmp/build_05b2173c/node_modules 108using description file: /tmp/build_05b2173c/package.json (relative path: ./node_modules) 109Field 'browser' doesn't contain a valid alias configuration 110using description file: /tmp/build_05b2173c/package.json (relative path: ./node_modules/jQuery) no extension 111Field 'browser' doesn't contain a valid alias configuration 112/tmp/build_05b2173c/node_modules/jQuery doesn't exist .mjs 113Field 'browser' doesn't contain a valid alias configuration 114/tmp/build_05b2173c/node_modules/jQuery.mjs doesn't exist .js 115Field 'browser' doesn't contain a valid alias configuration 116/tmp/build_05b2173c/node_modules/jQuery.js doesn't exist .sass 117Field 'browser' doesn't contain a valid alias configuration 118/tmp/build_05b2173c/node_modules/jQuery.sass doesn't exist .scss 119Field 'browser' doesn't contain a valid alias configuration 120/tmp/build_05b2173c/node_modules/jQuery.scss doesn't exist .css 121Field 'browser' doesn't contain a valid alias configuration 122/tmp/build_05b2173c/node_modules/jQuery.css doesn't exist .module.sass 123Field 'browser' doesn't contain a valid alias configuration 124/tmp/build_05b2173c/node_modules/jQuery.module.sass doesn't exist .module.scss 125Field 'browser' doesn't contain a valid alias configuration 126/tmp/build_05b2173c/node_modules/jQuery.module.scss doesn't exist .module.css 127Field 'browser' doesn't contain a valid alias configuration 128/tmp/build_05b2173c/node_modules/jQuery.jpg doesn't exist as directory 129/tmp/build_05b2173c/node_modules/jQuery doesn't exist 130 131! 132!Precompiling assets failed. 133! 134! Push rejected, failed to compile Ruby app. 135! Push failed
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/03/18 12:59