Sprockets::FileNotFound: couldn't find file 'jquery' with type 'application/javascript' Heroku in Rails App -


i'm trying deploy rails app heroku push heroku rejected due to: "sprockets::filenotfound: couldn't find file 'jquery' type 'application/javascript'". i've attached screenshot of error

this gemfile:

source 'https://rubygems.org'  git_source(:github) |repo_name|   repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")   "https://github.com/#{repo_name}.git" end   # bundle edge rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.1.2' gem 'jquery-rails' gem 'jquery-ui-rails'  # use postgresql database active record gem 'pg', '~> 0.18' # use puma app server gem 'puma', '~> 3.7' # use scss stylesheets gem 'sass-rails', '~> 5.0' # use uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # see https://github.com/rails/execjs#readme more supported runtimes gem 'therubyracer', platforms: :ruby  # use coffeescript .coffee assets , views gem 'coffee-rails', '~> 4.2' # turbolinks makes navigating web application faster. read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.5' # use redis adapter run action cable in production # gem 'redis', '~> 3.0' # use activemodel has_secure_password # gem 'bcrypt', '~> 3.1.7'  # use capistrano deployment # gem 'capistrano-rails', group: :development  gem 'bootstrap', '~> 4.0.0.alpha6' #tooltips , popovers depend on tether positioning source 'https://rails-assets.org'   gem 'rails-assets-tether', '>= 1.3.3' end  gem 'devise' gem 'simple_form' gem 'carrierwave', '~> 1.0'  group :development, :test   # call 'byebug' anywhere in code stop execution , debugger console   gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]   # adds support capybara system testing , selenium driver   gem 'capybara', '~> 2.13'   gem 'selenium-webdriver'   gem 'pry-rails' end  group :development   # access irb console on exception pages or using <%= console %> anywhere in code.   gem 'web-console', '>= 3.3.0'   gem 'listen', '>= 3.0.5', '< 3.2'   # spring speeds development keeping application running in background. read more: https://github.com/rails/spring   gem 'spring'   gem 'spring-watcher-listen', '~> 2.0.0' end  # windows not include zoneinfo files, bundle tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 

my application.js looks this

//= require jquery //= require jquery_ujs //= require jquery-ui //= require tether //= require bootstrap-sprockets //= require rails-ujs //= require turbolinks //= require_tree  

and application.scss looks this:

 *= require jquery-ui  *= require_tree .  *= require_self  */  @import "bootstrap"; 

the application runs fine locally can't seem push heroku. i've tried rake assets:precompile , committing changes before pushing heroku still no luck.

remove gems jquery-rails, jquery-ui-rails, rails 5.1 use rails-ujs default , not using jquery. use yarn install jquery - yarn add jquery. yarn


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -