Build error using jekyll-assets

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)

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

Have you tried bundle exec jekyll serve ?

Indeed. That’s the only way I run with

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 ?

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

jekyll 4.3.2

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

not sure where you’re going with this.

The problem has to do with GitHub - envygeeks/jekyll-assets: 🎨 Asset pipelines for Jekyll., 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.
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

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 %} 

Seems to be an issue exclusive to jekyll-assets . I suggest you either try their stable release or contact the plugin devs.

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.

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.

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.

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.

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.

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