typescript-ruby / typescript-rails

An asset pipeline wrapper for the TypeScript language
MIT License
255 stars 30 forks source link

asset precompilation broken on Heroku #19

Closed Valve closed 8 years ago

Valve commented 9 years ago

git push heroku git:master Fetching repository, done. Counting objects: 25, done. Delta compression using up to 4 threads. Compressing objects: 100% (25/25), done. Writing objects: 100% (25/25), 2.31 KiB | 0 bytes/s, done. Total 25 (delta 19), reused 0 (delta 0)

-----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.1.3 -----> Installing dependencies using 1.6.3 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Fetching source index from https://rubygems.org/ Using rake 10.3.2 Using i18n 0.6.11 Using minitest 5.4.3 Using thread_safe 0.3.4 Using builder 3.2.2 Using rack 1.5.2 Using erubis 2.7.0 Using mime-types 2.4.3 Using arel 5.0.1.20140414130214 Using mini_portile 0.6.1 Using addressable 2.3.6 Using rubyzip 1.1.6 Using htmlentities 4.3.2 Using cancan 1.6.10 Using bcrypt 3.1.9 Using cocoon 1.2.6 Using timers 1.1.0 Using coffee-script-source 1.8.0 Using execjs 2.2.2 Using thor 0.19.1 Using connection_pool 2.0.0 Using json 1.8.1 Using bundler 1.6.3 Using orm_adapter 0.5.0 Using hike 1.2.3 Using multi_json 1.10.1 Using request_store 1.1.0 Using ffi 1.9.6 Using tilt 1.4.1 Using excon 0.41.0 Using multipart-post 2.0.0 Using formatador 0.2.5 Using net-ssh 2.9.1 Using ipaddress 0.8.0 Using inflecto 0.0.2 Using hashie 2.0.5 Using httpclient 2.5.3.2 Using kgio 2.9.2 Using pg 0.17.1 Using pr_geohash 1.0.0 Using rails_serve_static_assets 0.0.2 Using newrelic_rpm 3.9.6.257 Using rails_stdout_logging 0.0.3 Using raindrops 0.13.0 Using react-source 0.12.0 Using recaptcha 0.3.6 Using redis 3.1.0 Using stagger 0.2.0 Using sass 3.2.19 Using state_machine 1.2.0 Using typescript-src 1.0.1.2 Using unf_ext 0.0.6 Using tzinfo 1.2.2 Using rsolr 1.0.10 Using sitemap_generator 5.0.5 Using rack-test 0.6.2 Using warden 1.2.3 Using heroku-deflater 0.5.3 Using rack-attack 4.2.0 Using rack-protection 1.5.3 Using mail 2.6.3 Using domainatrix 0.0.11 Using nokogiri 1.6.4.1 Using zip-zip 0.3 Using celluloid 0.15.2 Using coffee-script 2.3.0 Using uglifier 2.5.3 Using select2-rails 3.5.9.1 Using rollbar 1.2.7 Using fog-json 1.0.0 Using ethon 0.7.1 Using faraday 0.9.0 Using net-scp 1.2.1 Using rash 0.4.0 Using haml 4.0.5 Using rails_12factor 0.0.3 Using sprockets 2.11.3 Using redis-namespace 1.5.1 Using unicorn 4.8.3 Using typescript-node 1.1.0 Using unf 0.1.4 Using activesupport 4.1.6 Using sunspot 2.1.1 Using aws-sdk-v1 1.58.0 Using sinatra 1.4.5 Using axlsx 1.3.6 Using voight_kampff 0.2.1 Using fog-core 1.24.0 Using typhoeus 0.6.9 Using faraday_middleware 0.9.1 Using sidekiq 3.2.6 Using actionview 4.1.6 Using activemodel 4.1.6 Using jbuilder 2.2.4 Using rails_config 0.4.2 Using aws-sdk 1.58.0 Using fog-brightbox 0.6.1 Using fog-xml 0.1.1 Using fog-sakuracloud 0.1.1 Using fog-softlayer 0.3.24 Using geoip2 0.0.2 Using actionpack 4.1.6 Using activerecord 4.1.6 Using fog-radosgw 0.0.3 Using carrierwave 0.10.0 Using actionmailer 4.1.6 Using railties 4.1.6 Using sprockets-rails 2.2.0 Using kaminari 0.16.1 Using seed-fu 2.3.3 Using fog 1.24.0 Using responders 1.1.2 Using rails 4.1.6 Using coffee-rails 4.0.1 Using jquery-rails 3.1.2 Using sass-rails 4.0.4 Using espinita 0.0.8 Using devise 3.4.1 Using sunspot_rails 2.1.1 Using react-rails 0.12.0.0 Installing typescript-rails 0.3.0 Your bundle is complete! Gems in the groups development and test were not installed. It was installed into ./vendor/bundle Bundle completed (46.11s) Cleaning up the bundler cache. Removing typescript-rails (0.4.1) -----> Preparing app for Rails asset pipeline Running: rake assets:precompile [DEPRECATION] Rollbar.report_exception has been deprecated, please use log() or one of the level functions [Rollbar] Scheduling payload [Rollbar] Sending payload [Rollbar] Success [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=f608436a-08cf-4267-906f-214fec5b21f3 (only available if report was successful) rake aborted! node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object # has no method 'existsSync' at Object.fileExists (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:61758:32) at BatchCompiler.fileExists (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:62856:38) at ReferenceResolver.resolveIncludedFile (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:33428:28) at /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:33400:30 at Array.forEach (native) at ReferenceResolver.resolveInputFiles (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:33399:33) at Function.resolve (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:33387:29) at BatchCompiler.resolve (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:62353:70) at BatchCompiler.batchCompile (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:62249:22) at /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:62928:11 at Object. (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc.js:62929:2) at Module._compile (module.js:404:26) at Object..js (module.js:410:10) at Module.load (module.js:336:31) at Function._load (module.js:297:12) at require (module.js:348:19) at Object. (/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-src-1.0.1.2/lib/typescript-src/support/typescript/bin/tsc:2:1) at Module._compile (module.js:404:26) at Object..js (module.js:410:10) at Module.load (module.js:336:31) at Function._load (module.js:297:12) at Array. (module.js:423:10) at EventEmitter._tickCallback (node.js:126:26) (in /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/app/assets/javascripts/admin/alerts.js.ts)/tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-node-1.1.0/lib/typescript-node.rb:55:in compile' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/typescript-rails-0.3.0/lib/typescript/rails/template_handler.rb:47:inevaluate' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in render' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/context.rb:197:inblock in evaluate' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/context.rb:194:in each' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/context.rb:194:inevaluate' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/processed_asset.rb:12:in initialize' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:374:innew' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:374:in block in build_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:395:incircular_call_protection' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:373:in build_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:94:inblock in build_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/caching.rb:58:in cache_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:93:inbuild_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:287:in find_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:61:infind_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/processed_asset.rb:111:in block in resolve_dependencies' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/processed_asset.rb:105:ineach' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/processed_asset.rb:105:in resolve_dependencies' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/processed_asset.rb:97:inbuild_required_assets' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/processed_asset.rb:16:in initialize' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:374:innew' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:374:in block in build_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:395:incircular_call_protection' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:373:in build_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:94:inblock in build_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/caching.rb:58:in cache_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:93:inbuild_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:287:in find_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:61:infind_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/bundled_asset.rb:37:in init_with' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/asset.rb:24:infrom_hash' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/caching.rb:54:in cache_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:93:inbuild_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/base.rb:287:in find_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/index.rb:61:infind_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/manifest.rb:211:in block in find_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/manifest.rb:257:inbenchmark' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/manifest.rb:210:in find_asset' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/manifest.rb:119:inblock in compile' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/manifest.rb:118:in each' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/sprockets/manifest.rb:118:incompile' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.2.0/lib/sprockets/rails/task.rb:70:in block (3 levels) in define' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.3/lib/rake/sprocketstask.rb:146:inwith_logger' /tmp/build_46d1d58fb7d9d221500bdd2510e260c2/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.2.0/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define' Tasks: TOP => assets:precompile (See full trace by running task with --trace) ! ! Precompiling assets failed.

bdrazhzhov commented 8 years ago

Hi @Valve, Could you try deploying to Heroku with the latest version of gem? I test it and all my TS assets were compiled without error. I think your ones will be compiled too.

Valve commented 8 years ago

@bdrazhzhov , thanks for the follow up, but I've lost interest in TypeScript, now writing pure JS again :angel: