Hi,
Currently wondering how I would use ECMAScript 6 with Middleman, I’ve found this but it doesn’t appear to work with Middleman V4:
/home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:235:in `initialize': undefined method `source' for nil:NilClass (NoMethodError)
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:120:in `new'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:120:in `generate_resource'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:97:in `block in manipulate_resource_list'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:90:in `each'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:90:in `reduce'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-sprockets-1177edb30c45/lib/middleman-sprockets/extension.rb:90:in `manipulate_resource_list'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/sitemap/store.rb:200:in `block (2 levels) in ensure_resource_list_updated!'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/hamster-1.0.0/lib/hamster/vector.rb:1205:in `each'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/hamster-1.0.0/lib/hamster/vector.rb:1205:in `traverse_depth_first'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/hamster-1.0.0/lib/hamster/vector.rb:405:in `each'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/sitemap/store.rb:198:in `block in ensure_resource_list_updated!'
from /home/zack/.rvm/rubies/ruby-2.2.1/lib64/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/sitemap/store.rb:190:in `ensure_resource_list_updated!'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/sitemap/extensions/on_disk.rb:21:in `ready'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/callback_manager.rb:51:in `instance_exec'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/callback_manager.rb:51:in `block in execute'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/hamster-1.0.0/lib/hamster/vector.rb:1205:in `each'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/hamster-1.0.0/lib/hamster/vector.rb:1205:in `traverse_depth_first'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/hamster-1.0.0/lib/hamster/vector.rb:405:in `each'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/callback_manager.rb:51:in `execute'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/callback_manager.rb:28:in `block in install_methods!'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/application.rb:285:in `start_lifecycle'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-core/lib/middleman-core/application.rb:258:in `initialize'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-cli/lib/middleman-cli/build.rb:51:in `new'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-cli/lib/middleman-cli/build.rb:51:in `build'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor.rb:40:in `block in register'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /home/zack/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/zack/.rvm/gems/ruby-2.2.1/bundler/gems/middleman-ec99a7b28f6a/middleman-cli/bin/middleman:23:in `<top (required)>'
from /home/zack/.rvm/gems/ruby-2.2.1/bin/middleman:23:in `load'
from /home/zack/.rvm/gems/ruby-2.2.1/bin/middleman:23:in `<main>'
from /home/zack/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /home/zack/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Has anybody got a working solution? I’ve tried a lot of things.
Thanks!