All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

[FIXED] cannot load such file -- html/pipeline (LoadError) occurs during rails generate thredded:install

This content has been automatically translated from Ukrainian.
How to fix the startup error rails generate thredded:install?
~/Desktop/sandbox rails generate thredded:install

/Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require': cannot load such file -- html/pipeline (LoadError)
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/thredded-1.1.0/lib/thredded.rb:8:in `<main>'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.3.15/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.3.15/lib/bundler/runtime.rb:55:in `each'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.3.15/lib/bundler/runtime.rb:55:in `block in require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.3.15/lib/bundler/runtime.rb:44:in `each'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.3.15/lib/bundler/runtime.rb:44:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.3.15/lib/bundler.rb:187:in `require'
  from /Users/username/Desktop/sandbox/config/application.rb:7:in `<main>'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/actions.rb:22:in `require_application!'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/commands/generate/generate_command.rb:21:in `perform'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/base.rb:87:in `perform'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command.rb:48:in `invoke'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/commands.rb:18:in `<main>'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  from /Users/username/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
  from bin/rails:4:in `<main>'
To fix it, we add the gem to our Gemfile:
gem 'html-pipeline', '~> 2.14'
gem 'thredded', '~> 1.1'
We run bundle and try again:
rails generate thredded:install
      create  config/initializers/thredded.rb~/Desktop/sandbox
Everything works :) 
Like it?React
🧵

This post doesn't have any additions from the author yet.

Jun 5, '25 01:52

[Fixed] uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

[Fix] extconf.rb failed during the installation of the Ruby library Gosu
Jun 27, '24 16:38

[Fix] extconf.rb failed during the installation of the Ruby library Gosu

[Fix] Factory not registered: "user" (KeyError) (FactoryBot / Rails 7)
Dec 7, '24 10:46

[Fix] Factory not registered: "user" (KeyError) (FactoryBot / Rails 7)

Dec 9, '24 14:50

[Fix] No such file or directory @ rb_sysopen - tmp/pids/server.pid

May 9, '24 12:43

[Fix] Rails Admin - undefined local variable or method javascript_importmap_shim_nonce_configuration_tag

Where to find an older version of Google Chrome and download it? Using an old Mac as an example.
Apr 25, '25 23:02

Where to find an older version of Google Chrome and download it? Using an old Mac as an example.

Apr 24, '25 20:55

Fixing minikube on Mac with M1 (abandoning qemu, running on docker)

Apr 24, '25 20:17

Fixing minikube "You are trying to run the amd64 binary on an M1 system."

Task: Convert a Roman numeral to decimal (Ruby)
May 20, '25 12:05

Task: Convert a Roman numeral to decimal (Ruby)

Task to check the correctness of bracket placement (Ruby)
May 21, '25 10:27

Task to check the correctness of bracket placement (Ruby)

How to find the maximum subarray sum in Ruby
May 22, '25 11:01

How to find the maximum subarray sum in Ruby

Google Ads for Dummies: A Step-by-Step Guide for a Successful Start
May 28, '25 10:21

Google Ads for Dummies: A Step-by-Step Guide for a Successful Start

What is jemalloc and how does it relate to Ruby / Ruby on Rails
May 30, '25 11:53

What is jemalloc and how does it relate to Ruby / Ruby on Rails

How do Scratch courses help children develop soft skills?
Apr 11, '25 18:24

How do Scratch courses help children develop soft skills?

[Codecov] What is the difference between patch and project coverage?
Apr 9, '25 16:03

[Codecov] What is the difference between patch and project coverage?

Why does PostgreSQL skip IDs when saving new records? (Heroku)
Mar 31, '25 19:13

Why does PostgreSQL skip IDs when saving new records? (Heroku)