Home>

I'm getting an error while deploying on Heroku.
I think it's probably webpack, but what should I do?

Compiling...
       Compilation failed:
       /tmp/build_49d167b2_/node_modules/webpack-cli/bin/cli.js:93
                       throw err;
                       ^
       Error: Cannot find module'vue-loader'
       Require stack:
       -/tmp/build_49d167b2_/config/webpack/environment.js
       -/tmp/build_49d167b2_/config/webpack/production.js
       -/tmp/build_49d167b2_/node_modules/webpack-cli/bin/utils/convert-argv.js
       -/tmp/build_49d167b2_/node_modules/webpack-cli/bin/cli.js
       -/tmp/build_49d167b2_/node_modules/webpack/bin/webpack.js
           at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
           at Function.Module._load (internal/modules/cjs/loader.js:862:27)
           at Module.require (internal/modules/cjs/loader.js:1042:19)
           at require (/tmp/build_49d167b2_/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
           at Object. (/tmp/build_49d167b2_/config/webpack/environment.js:2:29)
           at Module._compile (/tmp/build_49d167b2_/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
           at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
           at Module.load (internal/modules/cjs/loader.js:1000:32)
           at Function.Module._load (internal/modules/cjs/loader.js:899:14)
           at Module.require (internal/modules/cjs/loader.js:1042:19)
           at require (/tmp/build_49d167b2_/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
           at Object. (/tmp/build_49d167b2_/config/webpack/production.js:3:21)
           at Module._compile (/tmp/build_49d167b2_/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
           at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
           at Module.load (internal/modules/cjs/loader.js:1000:32)
           at Function.Module._load (internal/modules/cjs/loader.js:899:14)
           at Module.require (internal/modules/cjs/loader.js:1042:19)
           at require (/tmp/build_49d167b2_/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
           at WEBPACK_OPTIONS (/tmp/build_49d167b2_/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13)
           at requireConfig (/tmp/build_49d167b2_/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6)
           at /tmp/build_49d167b2_/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17
           at Array.forEach ()
           at module.exports (/tmp/build_49d167b2_/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15)
           at /tmp/build_49d167b2_/node_modules/webpack-cli/bin/cli.js:71:45
           at Object.parse (/tmp/build_49d167b2_/node_modules/yargs/yargs.js:576:18)
           at /tmp/build_49d167b2_/node_modules/webpack-cli/bin/cli.js:49:8
           at Object. (/tmp/build_49d167b2_/node_modules/webpack-cli/bin/cli.js:366:3)
           at Module._compile (internal/modules/cjs/loader.js:1156:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
           at Module.load (internal/modules/cjs/loader.js:1000:32)
           at Function.Module._load (internal/modules/cjs/loader.js:899:14)
           at Module.require (internal/modules/cjs/loader.js:1042:19)
           at require (internal/modules/cjs/helpers.js:77:18)
           at Object. (/tmp/build_49d167b2_/node_modules/webpack/bin/webpack.js:156:2)
           at Module._compile (internal/modules/cjs/loader.js:1156:30)
           at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) {
         code:'MODULE_NOT_FOUND',
         requireStack: [
           '/tmp/build_49d167b2_/config/webpack/environment.js',
           '/tmp/build_49d167b2_/config/webpack/production.js',
           '/tmp/build_49d167b2_/node_modules/webpack-cli/bin/utils/convert-argv.js',
           '/tmp/build_49d167b2_/node_modules/webpack-cli/bin/cli.js',
           '/tmp/build_49d167b2_/node_modules/webpack/bin/webpack.js'
         ]
       }
 !!
 Precompiling assets failed.
 !!
 ! Push rejected, failed to compile Ruby app.
 ! Push failed


Gemfile

source'https://rubygems.org'
git_source(:github) {|repo| "https://github.com/#{repo}.git"}
ruby '2.6.5'
# Bundle edge Rails instead: gem'rails', github:'rails/rails'
gem'rails','~>6.0.0'
# Use mysql as the database for Active Record
gem'mysql2', '0.5.3'
# Use Puma as the app server
gem'puma','~>3.11'
# Use SCSS for stylesheets
gem'sass-rails','~>5'
# Transpile app-like JavaScript.Read more: https://github.com/rails/webpacker
gem'webpacker','~>4.0'
# Turbolinks makes navigating your web application faster.Read more: https://github.com/turbolinks/turbolinks
gem'turbolinks','~>5'
# Build JSON APIs with ease.Read more: https://github.com/rails/jbuilder
gem'jbuilder','~>2.7'
# Use Redis adapter to run Action Cable in production# gem'redis','~>4.0'
# Use Active Model has_secure_password
# gem'bcrypt','~>3.1.7'
# Use Active Storage variant
# gem'image_processing','~>1.2'
# Reduces boot times through caching;required in config/boot.rb
gem'bootsnap','>= 1.4.2', require: false
group :development, :test do
  # Call'byebug' anywhere in the code to stop execution and get a debugger console
  gem'byebug', platforms: [:mri, :mingw, :x64_mingw]
  gem'sqlite3' #do ~ end Added inside. Leave the other gems.
end
group :development do
  # Access an interactive console on exception pages or by calling'console' anywhere in the code.
  gem'web-console','>= 3.3.0'
  gem'listen','>= 3.0.5','<3.2'
  # Spring speeds up development by keeping your application running in the background.Read more: https://github.com/rails/spring
  gem'spring'
  gem'spring-watcher-listen','~>2.0.0'
end
group :test do
  # Adds support for Capybara system testing and selenium driver
  gem'capybara','>= 2.15'
  gem'selenium-webdriver'
  # Easy installation and use of web drivers to run system tests with browsers
  gem'webdrivers'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem'pry-rails'
# gem "haml-rails", ">= 1.0",'<= 2.0.1'
gem'devise'
gem'carrierwave'
gem'mini_magick'
gem'font-awesome-sass'
gem'haml-rails'
gem'erb2haml'
gem'jquery-rails'
gem'simple_calendar','~>2.0'
group :production do
  gem'pg'
end