You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the 0.13.2 version of the primer_view_components gem, I get a LoadError on first access of any page of my app:
Puma caught this error: no such file to load -- helpers/primer/form_helper (LoadError)
org/jruby/RubyKernel.java:1071:in 'require'
.../lib/ruby/gems/shared/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in 'require'
.../lib/ruby/gems/shared/gems/primer_view_components-0.13.2/lib/primer/view_components/engine.rb:47:in 'block in Engine'
The error is due to a require that uses an incorrect path to the form_helper.
initializer "primer.forms.helpers" do
ActiveSupport.on_load :action_controller_base do
---> require "helpers/primer/form_helper"
helper Primer::FormHelper
# make primer_form_with available to view components also
ViewComponent::Base.prepend(Primer::FormHelper)
end
end
The correct helpers folder location is actually added to the eager_load_paths earlier in the engire:
With the 0.13.2 version of the primer_view_components gem, I get a LoadError on first access of any page of my app:
The error is due to a require that uses an incorrect path to the form_helper.
The correct helpers folder location is actually added to the eager_load_paths earlier in the engire:
Therefore, simply removing the require on line 47 fixes the issue.
The text was updated successfully, but these errors were encountered: