Closed thanosbellos closed 1 year ago
As a follow up, it seems to be an issue with the latest version of view_component(2.75.0)
Locking it manually to version 2.74.1, did the trick and everything worked as expected.
@thanosbellos the issue is ViewComponent::Base.config.view_component_path
is nil and the gem probably needs to set that.
To fix, set the view_component_path
, for instance:
ViewComponent::Base.config.view_component_path = "src/_components"
class Base < ViewComponent::Base
# etc.
end
cc @jaredcwhite
v2.82.0 reverted Avoid loading ActionView::Base during initialization (introduced with v2.75.0) that seemed to be causing the issue.
@jaredcwhite I think we can close this issue.
I have this issue on VC 3.5.0 but @andrewmcodes's fix above works. Is this something we can fix in the code or is this something that should be documented?
Hi I am following the quick installation guide, on a fresh project.
I added the example's view component and nothing else. But when I try to start server I encounter the following error:
Versions of all gems
As an experiment I also downloaded lookbook docs, that are build with bridgetown too.
When I upgraded the core gem to v1.1.0 I had the same issue. Their repo is still using bridgetown-v1.0.0.
Thanks in advance and I am glad to help with any more information you may need.