[Pkg-javascript-devel] Help with handlebars library

Pirate Praveen praveen at onenetbeyond.org
Mon Oct 23 12:34:26 UTC 2017


Hi,

After a very long effort packaging countless Node.js modules and tools
like grunt, gulp, babel and webpack (I think at least 2 years must have
passed), I can finally build handlebars library in main. But when using
this version of the library in ruby-handlebars-assets, I get the
following errors when running tests.

Can anyone help fixing these errors?

You can get libjs-handlebars and libjs-handlebars.runtime from
people.debian.org/~praveen/babel (they are still in NEW).

  1) Error:
HandlebarsAssets::CompilingTest#test_patching_handlebars:
ExecJS::ProgramError: TypeError: Cannot read property 'prototype' of
undefined
    (execjs):4879:54
    (execjs):4896:14
    window ((execjs):1:102)
    Object.<anonymous> ((execjs):1:120)
    Module._compile (module.js:570:32)
    Object.Module._extensions..js (module.js:579:10)
    Module.load (module.js:487:32)
    tryModuleLoad (module.js:446:12)
    Function.Module._load (module.js:438:3)
    Module.runMain (module.js:604:10)
    /usr/lib/ruby/vendor_ruby/execjs/external_runtime.rb:39:in `exec'
    /usr/lib/ruby/vendor_ruby/execjs/external_runtime.rb:14:in `initialize'
    /usr/lib/ruby/vendor_ruby/execjs/runtime.rb:44:in `new'
    /usr/lib/ruby/vendor_ruby/execjs/runtime.rb:44:in `compile'
    /usr/lib/ruby/vendor_ruby/execjs/module.rb:27:in `compile'

/home/pravi/forge/debian/git/pkg-ruby-extras/ruby-handlebars-assets/lib/handlebars_assets/handlebars.rb:31:in
`context'

/home/pravi/forge/debian/git/pkg-ruby-extras/ruby-handlebars-assets/lib/handlebars_assets/handlebars.rb:10:in
`precompile'

/home/pravi/forge/debian/git/pkg-ruby-extras/ruby-handlebars-assets/test/handlebars_assets/compiling_test.rb:26:in
`test_patching_handlebars'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:107:in `block (3 levels)
in run'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:204:in `capture_exceptions'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:104:in `block (2 levels)
in run'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:255:in `time_it'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:103:in `block in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:350:in `on_signal'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:275:in `with_info_handler'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:102:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:839:in `run_one_method'
    /usr/lib/ruby/vendor_ruby/minitest.rb:324:in `run_one_method'
    /usr/lib/ruby/vendor_ruby/minitest.rb:311:in `block (2 levels) in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:310:in `each'
    /usr/lib/ruby/vendor_ruby/minitest.rb:310:in `block in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:350:in `on_signal'
    /usr/lib/ruby/vendor_ruby/minitest.rb:337:in `with_info_handler'
    /usr/lib/ruby/vendor_ruby/minitest.rb:309:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `block in __run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `map'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `__run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:136:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:63:in `block in autorun'

  2) Error:
HandlebarsAssets::HamlbarsTest#test_render_haml:
ExecJS::ProgramError: TypeError: Cannot read property 'apply' of undefined
    eval (eval at <anonymous> ((execjs):4879:8), <anonymous>:1:23)
    (execjs):4879:8
    (execjs):4885:14
    window ((execjs):1:102)
    Object.<anonymous> ((execjs):1:120)
    Module._compile (module.js:570:32)
    Object.Module._extensions..js (module.js:579:10)
    Module.load (module.js:487:32)
    tryModuleLoad (module.js:446:12)
    Function.Module._load (module.js:438:3)
    /usr/lib/ruby/vendor_ruby/execjs/external_runtime.rb:39:in `exec'
    /usr/lib/ruby/vendor_ruby/execjs/external_runtime.rb:21:in `eval'
    /usr/lib/ruby/vendor_ruby/execjs/external_runtime.rb:46:in `call'

/home/pravi/forge/debian/git/pkg-ruby-extras/ruby-handlebars-assets/test/test_helper.rb:28:in
`compile_hbs'

/home/pravi/forge/debian/git/pkg-ruby-extras/ruby-handlebars-assets/test/test_helper.rb:32:in
`hbs_compiled'

/home/pravi/forge/debian/git/pkg-ruby-extras/ruby-handlebars-assets/test/handlebars_assets/hamlbars_test.rb:25:in
`test_render_haml'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:107:in `block (3 levels)
in run'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:204:in `capture_exceptions'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:104:in `block (2 levels)
in run'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:255:in `time_it'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:103:in `block in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:350:in `on_signal'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:275:in `with_info_handler'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:102:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:839:in `run_one_method'
    /usr/lib/ruby/vendor_ruby/minitest.rb:324:in `run_one_method'
    /usr/lib/ruby/vendor_ruby/minitest.rb:311:in `block (2 levels) in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:310:in `each'
    /usr/lib/ruby/vendor_ruby/minitest.rb:310:in `block in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:350:in `on_signal'
    /usr/lib/ruby/vendor_ruby/minitest.rb:337:in `with_info_handler'
    /usr/lib/ruby/vendor_ruby/minitest.rb:309:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `block in __run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `map'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `__run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:136:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:63:in `block in autorun'


[The same error repeats]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20171023/267621d2/attachment.sig>


More information about the Pkg-javascript-devel mailing list