CultivateLabs/storytime

Assets PreCompilation Failure due to tidy.js entry

uksa opened this issue · 0 comments

uksa commented

I got the error below, when I tried to precompile the latest code a few days ago with my project. I was a little surprised as I can see the tidy.js file in the vendor dir. However to fix the issue I removed the tidy.js entry in the asset precompile as follows:

uksa@323fc6c

-MacBook-Air:alliance sam$ RAILS_ENV=production bin/rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile
rake aborted!
ExecJS::ProgramError: TypeError: Cannot set property 'uses_arguments' of null
(in /Users/sam/.rvm/gems/ruby-2.1.3/bundler/gems/storytime-9d6d76c9cebd/vendor/assets/javascripts/tidy.js)
Object.visit ((execjs):2441:2880)
Object.TreeWalker._visit ((execjs):2314:21399)
AST_Node.DEFNODE._walk ((execjs):2314:1314)
AST_Node. ((execjs):2314:15501)
Object.TreeWalker._visit ((execjs):2314:21481)
AST_Node.DEFNODE._walk ((execjs):2314:15462)
AST_Node. ((execjs):2314:16074)
Object.TreeWalker._visit ((execjs):2314:21481)
AST_Node.DEFNODE._walk ((execjs):2314:16041)
AST_Node. ((execjs):2314:10285)
/Users/sam/.rvm/gems/ruby-2.1.3/gems/execjs-2.5.2/lib/execjs/ruby_racer_runtime.rb:36:in `rescue in block in eval'