Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thestevemcniven's avatar

teams routes not in route list

Hi, I needed to modify a fairly new project with the jerstream inertia --teams

I went through all the modified files and merged in all changes. In a logged out state I can hit the jetstream /login route... and login. However the dashboard throws:

Uncaught (in promise) Error: Ziggy error: route 'teams.show' is not in the route list.
    at new u (dashboard:44:11915)
    at Proxy.<anonymous> (dashboard:44:17318)
    at Proxy.render (app.js:27370:16)
    at renderComponentRoot (app.js:10053:44)
    at ReactiveEffect.componentUpdateFn [as fn] (app.js:14712:57)
    at ReactiveEffect.run (app.js:7962:25)
    at instance.update (app.js:14826:56)
    at setupRenderEffect (app.js:14840:9)
    at mountComponent (app.js:14622:9)
    at processComponent (app.js:14580:17)

I installed a new laravel\jetstream inertia instance on the file system to try and figure it out, but there's nothing I can see in the routes\web.php.

Where do the routes get created, and what might I have missed here? I realize the docs say to start with teams OOTB fresh, but it was a last minute requirement.

Steve

0 likes
2 replies
frankielee's avatar
Level 29

Check the file resources/js/ziggy.js.

  1. Check the route teams.show is here
  2. If not here, run the command php artisan ziggy:generate && npm run watch to re-generate the file.
  3. If the route is registered, try to clear the cache php artisan optimize:clear
1 like
thestevemcniven's avatar

@frankielee Appreciate you SO MUCH right now

I was freaking out, reverted the project to the pre-teams version. But this new file was for sure not there. Tried that command on the new test project, it created it just fine, and "teams.show" appears in it.

I'll re-try this tomorrow morning after some sleep, she's late here.

Again, thanks so much for your assistance, I couldn't find this anywhere

1 like

Please or to participate in this conversation.