You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This worked fine in Rails 4.2 and Ruby 2.1.4, but now I'm using Rails 4.2 and Ruby 2.2.0.
Any help on this problem is greatly appreciated.
Thank you,
Terminal result:
ubuntu@ip:~/app$ RAILS_ENV=production bundle exec rake assets:precompile
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
DEPRECATION WARNING: The configuration option config.serve_static_assets has been renamed to config.serve_static_files to clarify its role (it merely enables serving everything in the public folder and is unrelated to the asset pipeline). The serve_static_assets alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /home/ubuntu/app/config/environments/production.rb:24)
rake aborted!
NameError: uninitialized constant Typescript::Rails::Compiler
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/typescript-rails-0.6.2/lib/typescript/rails/template.rb:25:in evaluate' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/tilt-2.0.1/lib/tilt/template.rb:96:inrender'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/legacy_tilt_processor.rb:25:in call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:75:incall_processor'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:57:in block in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:inreverse_each'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:134:inload_from_unloaded'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:60:in block in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:318:infetch_asset_from_dependency_cache'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:44:in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:20:inblock in initialize'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in yield' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:inload'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/bundle.rb:23:in block in call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/utils.rb:183:indfs'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/bundle.rb:24:in call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:75:incall_processor'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:57:in block in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:inreverse_each'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:134:inload_from_unloaded'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:60:in block in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:318:infetch_asset_from_dependency_cache'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:44:in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:20:inblock in initialize'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in yield' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:inload'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/base.rb:66:in find_asset' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/base.rb:73:infind_all_linked_assets'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:130:in block in find' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:129:ineach'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:129:in find' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:162:incompile'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:70:in block (3 levels) in define' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/rake/sprocketstask.rb:147:inwith_logger'
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered:
Hello @atteeela,
Could you find out more details? I tried to compile my own assets in my projects with ruby 2.2.0 and it was done without any error. But I would like to re-produce this error to know what is a source of your issue.
This issue is caused by the nodejs dependency on the latest version of Ubuntu/Debian. This is because nodejs executable is now called /usr/bin/nodejs rather than /usr/bin/node and this gem is only looking for node executable in the PATH rather than nodejs as well. You can fix this by sudo apt-get install nodejs-legacy
Hello,
This worked fine in Rails 4.2 and Ruby 2.1.4, but now I'm using Rails 4.2 and Ruby 2.2.0.
Any help on this problem is greatly appreciated.
Thank you,
Terminal result:
ubuntu@ip:~/app$ RAILS_ENV=production bundle exec rake assets:precompile
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
DEPRECATION WARNING: The configuration option
config.serve_static_assets
has been renamed toconfig.serve_static_files
to clarify its role (it merely enables serving everything in thepublic
folder and is unrelated to the asset pipeline). Theserve_static_assets
alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /home/ubuntu/app/config/environments/production.rb:24)rake aborted!
NameError: uninitialized constant Typescript::Rails::Compiler
/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/typescript-rails-0.6.2/lib/typescript/rails/template.rb:25:in
evaluate' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/tilt-2.0.1/lib/tilt/template.rb:96:in
render'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/legacy_tilt_processor.rb:25:in
call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:75:in
call_processor'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:57:in
block in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in
reverse_each'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in
call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:134:in
load_from_unloaded'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:60:in
block in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:318:in
fetch_asset_from_dependency_cache'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:44:in
load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:20:in
block in initialize'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in
yield' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in
load'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/bundle.rb:23:in
block in call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/utils.rb:183:in
dfs'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/bundle.rb:24:in
call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:75:in
call_processor'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:57:in
block in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in
reverse_each'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in
call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:134:in
load_from_unloaded'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:60:in
block in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:318:in
fetch_asset_from_dependency_cache'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:44:in
load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:20:in
block in initialize'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in
yield' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in
load'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/base.rb:66:in
find_asset' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/base.rb:73:in
find_all_linked_assets'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:130:in
block in find' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:129:in
each'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:129:in
find' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:162:in
compile'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:70:in
block (3 levels) in define' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/rake/sprocketstask.rb:147:in
with_logger'/home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered: