pantographe / view_component-form

Rails FormBuilder for ViewComponent
MIT License
204 stars 16 forks source link

Create empty class for ViewComponent::Form::RichTextAreaComponent #119

Closed nicolas-brousse closed 2 years ago

nicolas-brousse commented 2 years ago

On production latest release raise this error:

~/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/callbacks.rb:25:in `on_file_autoloaded': expected file ~/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/view_component-form-0.2.2/app/components/view_component/form/rich_text_area_component.rb to define constant ViewComponent::Form::RichTextAreaComponent, but didn't (Zeitwerk::NameError)
$ bin/rails zeitwerk:check
Hold on, I am eager loading the application.
expected file ~/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/view_component-form-0.2.2/app/components/view_component/form/rich_text_area_component.rb to define constant ViewComponent::Form::RichTextAreaComponent

We should do the same that we did for WeekdaySelectComponent (https://github.com/pantographe/view_component-form/pull/115)