My app, vida, has been outdated for a while. I’m upgrading my redwoodjs app from v0.21. So far, I got to v0.30. I’m facing an issue with Private routes. The app doesn’t navigate when I click on the link. It shows an empty page. When I remove the Private tag, routing works.
I use Auth0 for authentication. I checked the latest docs and the example-blog app. So far, I haven’t found the issue. Did anyone run into this problem before? What’s the way to debug route navigation issues?
There have been a few changes/fixes to the <Private> stuff and routing in general over the last bunch of releases. So I’d recommend continuing with the upgrade process and then see if you still have the issue when you’re on the latest version of RW. Specifically for auth0 we’ve changed how redirects after login are handled. Not sure if that would affect you or not, but either way I’d recommend continuing on with the version-by-version upgrade process.
So, that’s not typically how one runs Redwood CLI commands.
What happens when you run:
yarn rw prisma generate
And also make sure that redwood.toml has the correct path to your db schema – if you are setting it (you don’t need to if it is in the default location).