[Resolved] Default template CSS rendering failed

Hello :),

I wanted to try Middleman for testing and learning purpose. Unfortunately when i fired up middleman server and middleman build with the default template, Middleman failed to render the CSS.

Middleman is running inside a Jail managed by BatilleBSD on top of a FreeBSD 13.0-RELEASE OS.

# ruby --version
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [amd64-freebsd13]

Here how I installed Middleman :

All operation are made as root inside the jail.

# pkg install ruby rubygen-gems mode git
# gem install middleman
# middleman init test
# cd test
# middleman build --verbose
== Activating: file_watcher
== Activating: front_matter
== Activating: data
== Activating: inline_url_rewriter
== Activating: sitemap_ondisk
== Activating: sitemap_import
== Activating: sitemap_endpoint
== Activating: sitemap_proxies
== Activating: sitemap_redirects
== Activating: sitemap_move_files
== Activating: sitemap_ignore
== Activating: external_helpers
== Activating: erb_renderer
== Activating: coffee_renderer
== Activating: haml_renderer
== Activating: sass_renderer
== Activating: markdown_renderer
== Failed Activation `liquid_renderer` : cannot load such file -- liquid
== Failed Activation `slim_renderer` : cannot load such file -- slim
== Failed Activation `less_renderer` : cannot load such file -- less
== Activating: default_helpers
== Activating: lorem
== Activating: routing
== Activating: collections
== Change (#<Set: {:source}>): stylesheets/site.css.scss
== Change (#<Set: {:source}>): index.html.erb
== Change (#<Set: {:source}>): javascripts/site.js
== Change (#<Set: {:source}>): layouts/layout.erb
== Change (#<Set: {:source}>): images/.keep
== Rebuilding resource list
== Reading: Local config: config.rb
== Activating: autoprefixer
== Requesting resource list rebuilding: first_run_change_page
== Requesting resource list rebuilding: first_run_change_page
== Requesting resource list rebuilding: first_run_change_page
Loaded extensions:
== Extension: file_watcher
== Extension: front_matter
== Extension: data
== Extension: inline_url_rewriter
== Extension: sitemap_ondisk
== Extension: sitemap_import
== Extension: sitemap_endpoint
== Extension: sitemap_proxies
== Extension: sitemap_redirects
== Extension: sitemap_move_files
== Extension: sitemap_ignore
== Extension: external_helpers
== Extension: erb_renderer
== Extension: coffee_renderer
== Extension: haml_renderer
== Extension: sass_renderer
== Extension: markdown_renderer
== Extension: default_helpers
== Extension: lorem
== Extension: routing
== Extension: collections
== Extension: autoprefixer
  Please add the following to your Gemfile to avoid polling for changes:
    require 'rbconfig'
    if RbConfig::CONFIG['target_os'] =~ /(?i-mx:bsd|dragonfly)/
      gem 'rb-kqueue', '>= 0.2'
    end
== Change (#<Set: {:source}>): stylesheets/site.css.scss
== Change (#<Set: {:source}>): index.html.erb
== Change (#<Set: {:source}>): javascripts/site.js
== Change (#<Set: {:source}>): layouts/layout.erb
== Change (#<Set: {:source}>): images/.keep
== Rebuilding resource list
== Requesting resource list rebuilding: touched_file
== Requesting resource list rebuilding: registered_new_manipulator_front_matter
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_ondisk
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_import
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_endpoint
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_proxies
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_redirects
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_move_files
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_ignore
== Requesting resource list rebuilding: registered_new_manipulator_routing
== Requesting resource list rebuilding: registered_new_manipulator_routing
== Requesting resource list rebuilding: registered_new_manipulator_collections
== Rebuilding resource list
== Running manipulator: sitemap_ondisk (0)
== Running manipulator: sitemap_endpoint (0)
== Running manipulator: sitemap_proxies (0)
== Running manipulator: sitemap_redirects (0)
== Running manipulator: sitemap_ignore (0)
== Running manipulator: sitemap_import (1)
== Running manipulator: routing (10)
== Running manipulator: front_matter (20)
== Running manipulator: sitemap_move_files (101)
== Running manipulator: collections (110)
== Running manipulator: routing (130)
== Prerendering CSS
== Request: /stylesheets/site.css
== Finishing Request: stylesheets/site.css (0.01s)
TypeError: Cannot read properties of undefined (reading 'version')
       error  build/stylesheets/site.css
TypeError: Cannot read properties of undefined (reading 'version')
eval (eval at <anonymous> ((execjs):1:213), <anonymous>:1:10)
(execjs):1:213
(execjs):19:14
(execjs):1:40
Object.<anonymous> ((execjs):1:58)
Module._compile (node:internal/modules/cjs/loader:1101:14)
Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
Module.load (node:internal/modules/cjs/loader:981:32)
Function.Module._load (node:internal/modules/cjs/loader:822:12)
Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
/usr/local/lib/ruby/gems/2.7/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:39:in `exec'
/usr/local/lib/ruby/gems/2.7/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:21:in `eval'
/usr/local/lib/ruby/gems/2.7/gems/execjs-2.8.1/lib/execjs/runtime.rb:64:in `eval'
/usr/local/lib/ruby/gems/2.7/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:170:in `runtime'
/usr/local/lib/ruby/gems/2.7/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:53:in `process'
/usr/local/lib/ruby/gems/2.7/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:83:in `prefix'
/usr/local/lib/ruby/gems/2.7/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:74:in `process'
/usr/local/lib/ruby/gems/2.7/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:60:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/lint.rb:50:in `_call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/lint.rb:38:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/builder.rb:244:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/mock.rb:84:in `request'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/mock.rb:57:in `get'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:232:in `block in output_resource'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:225:in `output_resource'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:515:in `call_with_index'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:485:in `process_incoming_jobs'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:465:in `block in worker'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:456:in `fork'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:456:in `worker'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:447:in `block in create_workers'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:446:in `each'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:446:in `each_with_index'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:446:in `create_workers'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:386:in `work_in_processes'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:289:in `map'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:137:in `output_resources'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:97:in `block in prerender_css'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:95:in `prerender_css'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:65:in `block in run!'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:64:in `run!'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/middleman-cli-4.4.2/lib/middleman-cli/build.rb:84:in `block in build'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-cli-4.4.2/lib/middleman-cli/build.rb:83:in `build'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `block in invoke_all'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `each'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `map'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `invoke_all'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/group.rb:232:in `dispatch'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:116:in `invoke'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor.rb:40:in `block in register'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
/usr/local/lib/ruby/gems/2.7/gems/middleman-cli-4.4.2/bin/middleman:70:in `<top (required)>'
/usr/local/bin/middleman:23:in `load'
/usr/local/bin/middleman:23:in `<main>'
== Building files
== Request: /index.html
== Request: /images/.keep
== Request: /javascripts/site.js
== Finishing Request: images/.keep (0.0s)
== Finishing Request: javascripts/site.js (0.0s)
   identical  build/images/.keep
   identical  build/javascripts/site.js
== Finishing Request: index.html (0.01s)
   identical  build/index.html
There were errors during this build

If i add the following line in config.rb :

if RbConfig::CONFIG['target_os'] =~ /(?i-mx:bsd|dragonfly)/
  gem 'rb-kqueue', '>= 0.2'
end

and gem ‘rb-kqueue’ in Gemfile the output of middleman build is :

== Activating: file_watcher
== Activating: front_matter
== Activating: data
== Activating: inline_url_rewriter
== Activating: sitemap_ondisk
== Activating: sitemap_import
== Activating: sitemap_endpoint
== Activating: sitemap_proxies
== Activating: sitemap_redirects
== Activating: sitemap_move_files
== Activating: sitemap_ignore
== Activating: external_helpers
== Activating: erb_renderer
== Activating: coffee_renderer
== Activating: haml_renderer
== Activating: sass_renderer
== Activating: markdown_renderer
== Failed Activation `liquid_renderer` : cannot load such file -- liquid
== Failed Activation `slim_renderer` : cannot load such file -- slim
== Failed Activation `less_renderer` : cannot load such file -- less
== Activating: default_helpers
== Activating: lorem
== Activating: routing
== Activating: collections
== Change (#<Set: {:source}>): stylesheets/site.css.scss
== Change (#<Set: {:source}>): index.html.erb
== Change (#<Set: {:source}>): javascripts/site.js
== Change (#<Set: {:source}>): layouts/layout.erb
== Change (#<Set: {:source}>): images/.keep
== Rebuilding resource list
== Reading: Local config: config.rb
== Activating: autoprefixer
== Requesting resource list rebuilding: first_run_change_page
== Requesting resource list rebuilding: first_run_change_page
== Requesting resource list rebuilding: first_run_change_page
Loaded extensions:
== Extension: file_watcher
== Extension: front_matter
== Extension: data
== Extension: inline_url_rewriter
== Extension: sitemap_ondisk
== Extension: sitemap_import
== Extension: sitemap_endpoint
== Extension: sitemap_proxies
== Extension: sitemap_redirects
== Extension: sitemap_move_files
== Extension: sitemap_ignore
== Extension: external_helpers
== Extension: erb_renderer
== Extension: coffee_renderer
== Extension: haml_renderer
== Extension: sass_renderer
== Extension: markdown_renderer
== Extension: default_helpers
== Extension: lorem
== Extension: routing
== Extension: collections
== Extension: autoprefixer
== Change (#<Set: {:source}>): stylesheets/site.css.scss
== Change (#<Set: {:source}>): index.html.erb
== Change (#<Set: {:source}>): javascripts/site.js
== Change (#<Set: {:source}>): layouts/layout.erb
== Change (#<Set: {:source}>): images/.keep
== Rebuilding resource list
== Requesting resource list rebuilding: touched_file
== Requesting resource list rebuilding: registered_new_manipulator_front_matter
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_ondisk
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_import
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_endpoint
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_proxies
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_redirects
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_move_files
== Requesting resource list rebuilding: registered_new_manipulator_sitemap_ignore
== Requesting resource list rebuilding: registered_new_manipulator_routing
== Requesting resource list rebuilding: registered_new_manipulator_routing
== Requesting resource list rebuilding: registered_new_manipulator_collections
== Rebuilding resource list
== Running manipulator: sitemap_ondisk (0)
== Running manipulator: sitemap_endpoint (0)
== Running manipulator: sitemap_proxies (0)
== Running manipulator: sitemap_redirects (0)
== Running manipulator: sitemap_ignore (0)
== Running manipulator: sitemap_import (1)
== Running manipulator: routing (10)
== Running manipulator: front_matter (20)
== Running manipulator: sitemap_move_files (101)
== Running manipulator: collections (110)
== Running manipulator: routing (130)
== Prerendering CSS
== Request: /stylesheets/site.css
== Finishing Request: stylesheets/site.css (0.01s)
TypeError: Cannot read properties of undefined (reading 'version')
       error  build/stylesheets/site.css
TypeError: Cannot read properties of undefined (reading 'version')
eval (eval at <anonymous> ((execjs):1:213), <anonymous>:1:10)
(execjs):1:213
(execjs):19:14
(execjs):1:40
Object.<anonymous> ((execjs):1:58)
Module._compile (node:internal/modules/cjs/loader:1101:14)
Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
Module.load (node:internal/modules/cjs/loader:981:32)
Function.Module._load (node:internal/modules/cjs/loader:822:12)
Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
/usr/local/lib/ruby/gems/2.7/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:39:in `exec'
/usr/local/lib/ruby/gems/2.7/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:21:in `eval'
/usr/local/lib/ruby/gems/2.7/gems/execjs-2.8.1/lib/execjs/runtime.rb:64:in `eval'
/usr/local/lib/ruby/gems/2.7/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:170:in `runtime'
/usr/local/lib/ruby/gems/2.7/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:53:in `process'
/usr/local/lib/ruby/gems/2.7/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:83:in `prefix'
/usr/local/lib/ruby/gems/2.7/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:74:in `process'
/usr/local/lib/ruby/gems/2.7/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:60:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/lint.rb:50:in `_call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/lint.rb:38:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/builder.rb:244:in `call'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/mock.rb:84:in `request'
/usr/local/lib/ruby/gems/2.7/gems/rack-2.2.3/lib/rack/mock.rb:57:in `get'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:232:in `block in output_resource'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:225:in `output_resource'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:515:in `call_with_index'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:485:in `process_incoming_jobs'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:465:in `block in worker'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:456:in `fork'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:456:in `worker'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:447:in `block in create_workers'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:446:in `each'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:446:in `each_with_index'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:446:in `create_workers'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:386:in `work_in_processes'
/usr/local/lib/ruby/gems/2.7/gems/parallel-1.21.0/lib/parallel.rb:289:in `map'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:137:in `output_resources'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:97:in `block in prerender_css'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:95:in `prerender_css'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:65:in `block in run!'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:64:in `run!'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
/usr/local/lib/ruby/gems/2.7/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
/usr/local/lib/ruby/gems/2.7/gems/middleman-cli-4.4.2/lib/middleman-cli/build.rb:84:in `block in build'
/usr/local/lib/ruby/gems/2.7/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.7/gems/middleman-cli-4.4.2/lib/middleman-cli/build.rb:83:in `build'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `block in invoke_all'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `each'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `map'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `invoke_all'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/group.rb:232:in `dispatch'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:116:in `invoke'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor.rb:40:in `block in register'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
/usr/local/lib/ruby/gems/2.7/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
/usr/local/lib/ruby/gems/2.7/gems/middleman-cli-4.4.2/bin/middleman:70:in `<top (required)>'
/usr/local/bin/middleman:23:in `load'
/usr/local/bin/middleman:23:in `<main>'
== Building files
== Request: /images/.keep
== Finishing Request: images/.keep (0.0s)
   identical  build/images/.keep
== Request: /javascripts/site.js
== Finishing Request: javascripts/site.js (0.0s)
   identical  build/javascripts/site.js
== Request: /index.html
== Finishing Request: index.html (0.01s)
   identical  build/index.html
There were errors during this build

I’m quite new in programming field so i don’t understand all the previous error (yet).
Can you help me with this ? :slight_smile:

Problem fixed :slight_smile: :

-gem 'middleman-autoprefixer', '~> 2.10'
+gem 'middleman-autoprefixer', '~> 3.0'

source : https://github.com/middleman/middleman/issues/2480