I've created a new rails application and installed Ember.js bootstrap there. Unfortunately, I'm receiving error shown below when I'm trying to enter the landing page:
Sprockets::FileNotFound in DataVisualisation#index
Showing /Users/user/apps/example-app/app/views/layouts/application.html.erb where line #7 raised:
couldn't find file 'jquery' with type 'text/coffeescript'
Checked in these paths:
/Users/user/apps/example-app/vendor/assets/ember/development
/Users/user/apps/example-app/app/assets/config
/Users/user/apps/example-app/app/assets/images
/Users/user/apps/example-app/app/assets/javascripts
/Users/user/apps/example-app/app/assets/stylesheets
/Users/user/apps/example-app/vendor/assets/ember
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/jquery-rails-4.3.1/vendor/assets/javascripts
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/ember-rails-0.21.0/app/assets/javascripts
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/coffee-rails-4.2.2/lib/assets/javascripts
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/actioncable-5.1.4/lib/assets/compiled
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/actionview-5.1.4/lib/assets/compiled
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/turbolinks-source-5.0.3/lib/assets/javascripts
/Users/user/apps/example-app/node_modules
/Users/user/apps/example-app/tmp/ember-rails
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/ember-source-2.17.0/dist
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/ember-data-source-2.17.0/dist/globals
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/active-model-adapter-source-2.1.1/dist
/Users/user/.rvm/gems/ruby-2.4.2@example_app/gems/ember-cli-assets-0.0.37/vendor/assets
Extracted source (around line #1):
1 #= require jquery
2 #= require jquery_ujs
3 #= require ./environment
4 #= require ember
5 #= require ember-data
6 #= require active-model-adapter
There is how application.coffee file looks like:
#= require jquery
#= require jquery_ujs
#= require ./environment
#= require ember
#= require ember-data
#= require active-model-adapter
#= require_self
#= require ./data-visualisation
# for more details see: http://ift.tt/XTBcuN
window.ExampleApp = Ember.Application.create()
Gemfile includes gems like:
gem 'rails', '~> 5.1.4'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'ember-rails'
gem 'jquery-rails'
Do you have any suggestions why I'm receiving this error?
Aucun commentaire:
Enregistrer un commentaire