-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polaris View Components view helper problem #200
Comments
I'm attempting to use this gem for the first time and have encountered the same issue as presented above. @resistorsoftware can you share any information about how you were able to resolve this issue? I'm currently running rails 7.0.3 on ruby 3.1.2. thanks in advance |
I don't remember exactly, but this was not a Polaris View Component problem, but instead a Rails one. I think I just had to adjust my gems to get it all working. |
Hi guys, I also having this issue - could you please share the workaround you'd made before. Thanks! I'm using
|
Looks like the latest version of this gem is for Rails 7.1 or higher https://github.com/baoagency/polaris_view_components/pull/338/files |
I'm gonna double check it on Rails 7.0 |
Our app runs on rails |
Can confirm Rails 7.1.5 at Ruby 3.3.6 works fine, and once again, this is a thing I am almost certain was just an unfortunate bundle, whereby I used the Zeitwerk and eventually figured out that it was just a bad bundle. A Ruby issue that was fixed by carefully removed the lockfile and just starting over with fresh bundles... I know that sounds non-technical, but the clue for me was that adding a gem should not suddenly start blowing chunks at Polaris::Viewhelper. So while I cannot remember the exact cure, I swear it was nothing more than making sure all my gems made sense, doing a fresh bundle install, and voila, all worked again without any changes... |
Rails 7.0.2, Ruby 3.1.0
This App was great a few hours ago, I added a new gem to my bundle and boom, all borked now.
Tried running a generator and it did not like something:
Next up, I just tried running the App, and strangely it won't run at all now. Same error.
I figured I would ask the great Zeitwerk what he thought.. and he bubbled too.
So suddenly, the engine is having problems autoloading code? It was working perfect today! No issues. I added one gem and bundled that in, and boom. No more Polaris View Components? I see nothing wrong in the code in the engine.
What the heck... my other Rails 7.0.1 project works perfect... with the same code pretty well, but a Polaris View Component I pulled from the 8.0 main branch, not 8.1. Should not have made a stitch of difference.
The text was updated successfully, but these errors were encountered: