# Build error using jekyll-assets

**URL:** <https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780>\
**Category:** Help\
**Created:** [December 25, 2023, 5:27pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780 "2023-12-25T17:27:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 25, 2023, 5:27pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/1 "2023-12-25T17:27:49Z")

</div>

Running into issues building my site locally. Culprit seems to be related jekyll-assets.  
When I remove the assets liquid tags from the layout build goes through.

I tried Ruby v. 3-3.2

This is the error:

uvi@MacBook-Pro-2 lp-system % bundle exec jekyll serve --trace  
Configuration file: /Users/uvi/git/templates/lp-system/\_config.yml  
Source: /Users/uvi/git/templates/lp-system  
Destination: /Users/uvi/git/templates/lp-system/\_site  
Incremental build: disabled. Enable with --incremental  
Generating…  
Jekyll Feed: Generating feed for posts  
Liquid Exception: wrong number of arguments (given 2, expected 1) in /Users/uvi/git/templates/lp-system/\_layouts/default.html  
bundler: failed to load command: jekyll (/Users/uvi/.asdf/installs/ruby/3.0.0/bin/jekyll)

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 25, 2023, 5:29pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/2 "2023-12-25T17:29:20Z")

</div>

The error log:

/Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/resolve.rb:46:in `resolve!': wrong number of arguments (given 2, expected 1) (ArgumentError) from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/base.rb:126:in `find\_asset!’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/patches/cached\_environment.rb:37:in `block (2 levels) in <module:CachedEnvironment>' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/plugins/srcmap/css.rb:13:in `block in module:Plugins’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/compressors/sassc.rb:15:in `block in call' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/hook.rb:80:in `block in trigger’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/hook.rb:80:in `map' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/hook.rb:80:in `trigger’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/compressors/sassc.rb:12:in `call' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/sassc_compressor.rb:27:in `call’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/processor\_utils.rb:84:in `call_processor' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/processor_utils.rb:66:in `block in call\_processors’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/processor\_utils.rb:65:in `reverse_each' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/processor_utils.rb:65:in `call\_processors’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/loader.rb:184:in `load_from_unloaded' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/loader.rb:59:in `block in load’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/loader.rb:43:in `load’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/cached\_environment.rb:44:in `block in load' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch\_or\_store’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/map.rb:187:in `fetch' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/map.rb:206:in `fetch\_or\_store’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/cached\_environment.rb:44:in `load' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/base.rb:128:in `find\_asset!’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/patches/cached\_environment.rb:37:in `block (2 levels) in <module:CachedEnvironment>' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/sprockets-4.2.1/lib/sprockets/environment.rb:35:in `find\_asset!’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/env.rb:73:in `block in find_asset!' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/logger.rb:22:in `with\_timed\_logging’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/env.rb:72:in `find_asset!' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/tag.rb:196:in `internal’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/tag.rb:66:in `render_raw' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/jekyll-assets-056d2c88719e/lib/jekyll/assets/tag.rb:82:in `render’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block\_body.rb:103:in `render_node_to_output' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:91:in `render’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:206:in `block in render' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:240:in `with\_profiling’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:205:in `render' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:218:in `render!’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid\_renderer/file.rb:39:in `block (3 levels) in render!' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:59:in `measure\_counts’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid\_renderer/file.rb:38:in `block (2 levels) in render!' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:63:in `measure\_bytes’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid\_renderer/file.rb:37:in `block in render!' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:70:in `measure\_time’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid\_renderer/file.rb:36:in `render!' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:129:in `render\_liquid’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:192:in `render_layout' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:161:in `place\_in\_layouts’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:93:in `render_document' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:63:in `run’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:572:in `render_regenerated' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:564:in `block in render\_pages’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:563:in `each' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:563:in `render\_pages’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:211:in `render' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:80:in `process’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:28:in `process_site' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:65:in `build’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:36:in `process' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `block in process\_with\_graceful\_fail’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `each' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `process\_with\_graceful\_fail’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>' from /Users/uvi/.asdf/installs/ruby/3.0.0/bin/jekyll:23:in `load’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/bin/jekyll:23:in `<top (required)>' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/cli/exec.rb:58:in `load’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/cli/exec.rb:58:in `kernel_load' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/cli/exec.rb:23:in `run’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/cli.rb:451:in `exec' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/cli.rb:34:in `dispatch' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/cli.rb:28:in `start' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/exe/bundle:28:in `block in \<top (required)\>’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/lib/bundler/friendly\_errors.rb:117:in `with_friendly_errors' from /Users/uvi/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.5.3/exe/bundle:20:in `\<top (required)\>’  
from /Users/uvi/.asdf/installs/ruby/3.0.0/bin/bundle:23:in `load' from /Users/uvi/.asdf/installs/ruby/3.0.0/bin/bundle:23:in `’

---

<div class="post-metadata">

**Author:** ![panchtatvam](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/panchtatvam/32/5512_2.png) [@panchtatvam](https://talk.jekyllrb.com/u/panchtatvam)\
**Post date:** [December 26, 2023, 7:54am UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/3 "2023-12-26T07:54:50Z")

</div>

Have you tried `bundle exec jekyll serve` ?

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 26, 2023, 11:43am UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/4 "2023-12-26T11:43:30Z")

</div>

Indeed. That’s the only way I run with

---

<div class="post-metadata">

**Author:** ![panchtatvam](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/panchtatvam/32/5512_2.png) [@panchtatvam](https://talk.jekyllrb.com/u/panchtatvam)\
**Post date:** [December 26, 2023, 11:47am UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/5 "2023-12-26T11:47:44Z")

</div>

Seems to be an issue with Jekyll executable which should have been resolved by `bundle install` or by `bundle exec jekyll serve` .

Are you able to view valid version result for `jekyll --version` at the terminal ?

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 26, 2023, 12:54pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/6 "2023-12-26T12:54:48Z")

</div>

No problem with version:  
uvi@MacBook-Pro-2 lp-system % jekyll --version

jekyll 4.3.2

---

<div class="post-metadata">

**Author:** ![panchtatvam](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/panchtatvam/32/5512_2.png) [@panchtatvam](https://talk.jekyllrb.com/u/panchtatvam)\
**Post date:** [December 26, 2023, 12:59pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/7 "2023-12-26T12:59:55Z")

</div>

Could you share `_layouts/default.html` and your `assets` folder ?

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 26, 2023, 1:21pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/8 "2023-12-26T13:21:13Z")

</div>

not sure where you’re going with this.

The problem has to do with [GitHub - envygeeks/jekyll-assets: 🎨 Asset pipelines for Jekyll.](https://github.com/envygeeks/jekyll-assets), most likely dependencies  
incompatibility. Without the plugin I have no issues running Jekyll.

The Gem.lock file looks like that:

GIT  
remote: [GitHub - envygeeks/jekyll-assets: 🎨 Asset pipelines for Jekyll.](https://github.com/envygeeks/jekyll-assets)  
revision: 056d2c88719ef3b1f90967a606dd1441581dd832  
specs:  
jekyll-assets (4.0.0.alpha)  
activesupport (\>= 5, \< 7)  
execjs (~\> 2.7)  
extras (~\> 0.2)  
fastimage (~\> 2.0, \>= 1.8)  
jekyll (\>= 3.5, \< 5.0)  
jekyll-sanity (~\> 1.2)  
liquid-tag-parser (\>= 1, \< 3)  
nokogiri (~\> 1.10)  
pathutil (~\> 0.16)  
sassc (\>= 1.11, \< 3.0)  
sprockets (~\> 4.0.beta7)

GEM  
specs:  
activesupport (6.1.7.6)  
concurrent-ruby (~\> 1.0, \>= 1.0.2)  
i18n (\>= 1.6, \< 2)  
minitest (\>= 5.1)  
tzinfo (~\> 2.0)  
zeitwerk (~\> 2.3)  
addressable (2.8.6)  
public\_suffix (\>= 2.0.2, \< 6.0)  
babel-source (5.8.35)  
babel-transpiler (0.7.0)  
babel-source (\>= 4.0, \< 6)  
execjs (~\> 2.0)  
colorator (1.1.0)  
concurrent-ruby (1.2.2)  
em-websocket (0.5.3)  
eventmachine (\>= 0.12.9)  
http\_parser.rb (~\> 0)  
eventmachine (1.2.7)  
execjs (2.9.1)  
extras (0.3.0)  
forwardable-extended (~\> 2.5)  
fastimage (2.2.7)  
ffi (1.16.3)  
forwardable-extended (2.6.0)  
google-protobuf (3.25.1-arm64-darwin)  
http\_parser.rb (0.8.0)  
i18n (1.14.1)  
concurrent-ruby (~\> 1.0)  
jekyll (4.3.2)  
addressable (~\> 2.4)  
colorator (~\> 1.0)  
em-websocket (~\> 0.5)  
i18n (~\> 1.0)  
jekyll-sass-converter (\>= 2.0, \< 4.0)  
jekyll-watch (~\> 2.0)  
kramdown (~\> 2.3, \>= 2.3.1)  
kramdown-parser-gfm (~\> 1.0)  
liquid (~\> 4.0)  
mercenary (\>= 0.3.6, \< 0.5)  
pathutil (~\> 0.9)  
rouge (\>= 3.0, \< 5.0)  
safe\_yaml (~\> 1.0)  
terminal-table (\>= 1.8, \< 4.0)  
webrick (~\> 1.7)  
jekyll-feed (0.17.0)  
jekyll (\>= 3.7, \< 5.0)  
jekyll-gzip (2.5.1)  
jekyll (\>= 3.0, \< 5.0)  
jekyll-sanity (1.6.0)  
jekyll (\>= 3.1, \< 5.0)  
pathutil (~\> 0.16)  
jekyll-sass-converter (3.0.0)  
sass-embedded (~\> 1.54)  
jekyll-watch (2.2.1)  
listen (~\> 3.0)  
kramdown (2.4.0)  
rexml  
kramdown-parser-gfm (1.1.0)  
kramdown (~\> 2.0)  
liquid (4.0.4)  
liquid-tag-parser (2.0.2)  
extras (~\> 0.3)  
liquid (\>= 3.0, \< 5.0)  
listen (3.8.0)  
rb-fsevent (~\> 0.10, \>= 0.10.3)  
rb-inotify (~\> 0.9, \>= 0.9.10)  
mercenary (0.4.0)  
minitest (5.20.0)  
nokogiri (1.15.5-arm64-darwin)  
racc (~\> 1.4)  
pathutil (0.16.2)  
forwardable-extended (~\> 2.6)  
public\_suffix (5.0.4)  
racc (1.7.3)  
rack (3.0.8)  
rb-fsevent (0.11.2)  
rb-inotify (0.10.1)  
ffi (~\> 1.0)  
rexml (3.2.6)  
rouge (4.2.0)  
safe\_yaml (1.0.5)  
sass-embedded (1.69.5-arm64-darwin)  
google-protobuf (~\> 3.23)  
sassc (2.4.0)  
ffi (~\> 1.9)  
sprockets (4.2.1)  
concurrent-ruby (~\> 1.0)  
rack (\>= 2.2.4, \< 4)  
terminal-table (3.0.2)  
unicode-display\_width (\>= 1.1.1, \< 3)  
tzinfo (2.0.6)  
concurrent-ruby (~\> 1.0)  
uglifier (4.2.0)  
execjs (\>= 0.3.0, \< 3)  
unicode-display\_width (2.5.0)  
webrick (1.8.1)  
zeitwerk (2.6.12)

PLATFORMS  
arm64-darwin-22  
arm64-darwin-23

DEPENDENCIES  
babel-transpiler  
jekyll  
jekyll-assets!  
jekyll-feed (~\> 0.12)  
jekyll-gzip  
uglifier

BUNDLED WITH  
2.5.3

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 26, 2023, 1:31pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/9 "2023-12-26T13:31:26Z")

</div>

Default.html:

```
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>{{page.title}}</title>
    <meta name="viewport"
    content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0, minimal-ui"/>
    <meta name="keywords" content="{{ page.keywords | join: ', ' }}"/>
    <meta name="description" content="{{ page.description }}"/>
    <meta name="facebook-domain-verification" content="jgn1pque1hdtioeuye07ou36n6ej0s" />

    
    
    {% asset mainstyle.css %} 
    {% include color-styling.html %}
    {% include head-scripts.html %}
</head>

```

 {% include body-scripts.html %} {{ content }}

```
{% include form-generator/template.html %}
{% asset mainjs.js %} 

```

---

<div class="post-metadata">

**Author:** ![panchtatvam](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/panchtatvam/32/5512_2.png) [@panchtatvam](https://talk.jekyllrb.com/u/panchtatvam)\
**Post date:** [December 26, 2023, 2:55pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/10 "2023-12-26T14:55:44Z")

</div>

Seems to be an issue exclusive to [jekyll-assets](https://github.com/envygeeks/jekyll-assets) . I suggest you either try their `stable` release or contact the plugin devs.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [December 26, 2023, 8:17pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/11 "2023-12-26T20:17:07Z")

</div>

is this a new site? or an old site that used to work and now doesn’t?

maybe it doesn’t like jekyll 4? have you tried it with 3?

That plugin is pretty old and used to be quite popular but I don’t ever see much about it now.

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 26, 2023, 9:36pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/12 "2023-12-26T21:36:41Z")

</div>

Not an old site. about 3 years old. Every few months when I have to update something breaks but I’ve always managed to get it to work eventually.

Last Jekyll successful version was 4.2.2 running Ruby 2.7.

Any idea which modern Plugin can replace it? This plugin is very powerful especially with the use  
in conjunction with Imagmagik.

The reason I have to update versions is due-to the fact the build is running remotely on AWS Lambda  
and they retire older Ruby versions as time goes.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [December 26, 2023, 11:41pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/13 "2023-12-26T23:41:02Z")

</div>

have you tried running the older version of jekyll with the new version of ruby?

I’ve not seen anything like that gem. Other generators may have something more like it though (I’ve not used it so not sure what all it does), Hugo has some abilities to modify images I think. So does Next.js.

As for building the site I would think you should be able to use a docker file with whatever versions you want. But that would depend on whatever your build process is. Might be worth looking into.

---

<div class="post-metadata">

**Author:** ![webrush](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/webrush/32/5683_2.png) [@webrush](https://talk.jekyllrb.com/u/webrush)\
**Post date:** [December 27, 2023, 3:29pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/14 "2023-12-27T15:29:09Z")

</div>

Yes, it’s the newer versions of Ruby that generates this arguments error.

I will try the docker option. Thx

Did anyone try to run a Jekyll build on top of AWS amplify? wondering if that could address that issue as well.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [December 27, 2023, 4:57pm UTC](https://talk.jekyllrb.com/t/build-error-using-jekyll-assets/8780/15 "2023-12-27T16:57:45Z")

</div>

I use amplify, works great. I just looked at how it is setup and it seems like the default docker image I am using has multiple versions of ruby and I could tell it to use 2.6.3 by setting rvm to use that, it looks like I did that at come point and then commented it out.

I’m not sure why the default image is so out of date, my guess is if you change to it they will update it and then my site will break too! ha ha.

When you do it this way though you have some control of what you get - you may even be able to install the older versions of ruby without much issue even if it isn’t there.

Here is my amplify.yml file - I am using a custom npm script to do some stuff, where you see the command: npm run deploy you would have bundle execut jekyll build or just jekyll build if that works.

```auto
version: 1
frontend:
  phases:
    preBuild:
      commands:
        - ruby -v
        #- rvm --default use 2.6.3
        #- ruby -v
        - npm ci
        - jekyll -v
        #- gem install jekyll
        #- jekyll -v
    build:
      commands:
        - npm run deploy
  artifacts:
    # IMPORTANT - Please verify your build output directory
    baseDirectory: _site
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

```

![image](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/c/c0c2b6fdad8f3662822a756b861588c9b98b4cc6.png)
