Closed andrewmcodes closed 2 years ago
It should be easy enough to provide a Rails version to match Active Support due to lack of Railties loaded, but as for other issues I'm not sure. I haven't used the latest version of VC myself in a while. Thanks for the heads up.
@jaredcwhite it may be worth locking VC to < 2.47.0
and releasing a patch until a more permanent solution is found?
New release today as part of the Bridgetown 1.0 rollout. Should be all good now with the latest VC version!
Works great! TY @jaredcwhite !
I created a new Bridgetown project today and added ViewComponent the way I usually do but ran into an error I had not seen on my other website, which was using the same set up.
After some investigation, I think this commit may have been the issue..
I tried a few things to get rid of the error like defining
Rails::VERSION
(before I saw the commit above) but ran into errors like:I resolved the issue for now by locking
view_component
to< 2.47.0
since it works fine in2.46.0
.Wasn't sure if the best plan was to find a way to stub this out or to open an upstream issue. WDYT?
I can provide code samples on request.