Skip to content
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

Error in Rails 8 RC2 with Inertia, React, and vite_ruby #205

Open
wilbertliu opened this issue Nov 15, 2024 · 4 comments
Open

Error in Rails 8 RC2 with Inertia, React, and vite_ruby #205

wilbertliu opened this issue Nov 15, 2024 · 4 comments

Comments

@wilbertliu
Copy link

Hey folks,

I'm on Rails 8 rc2 with Inertia, React, and vite_ruby. Every time I try to visit the /jobs page, I get this error:

CleanShot 2024-11-15 at 09 43 25@2x

Could anyone help?

@rosa
Copy link
Member

rosa commented Nov 15, 2024

@wilbertliu, what do you get from

bin/rails routes | grep jobs

?

@wilbertliu
Copy link
Author

CleanShot 2024-11-16 at 21 19 52@2x

I hope that's clear, @rosa 😀

@rosa
Copy link
Member

rosa commented Nov 16, 2024

Yes, that's totally clear and it also looks correct. Hmmm.. I don't really know what's going on here. What I'd do here, if this were happening to me, is to set a breakpoint in lib/action_dispatch/journey/router.rb:133 in find_routes and then step through it to try to figure out what's causing the infinite (or too long) recursion with the as_json calls.

@wilbertliu
Copy link
Author

@rosa Looks like that is not something I can do, right? lib/action_dispatch is Rails internal if I'm not mistaken 🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants