#11877·graphql

[Bug?]: route is not a function

Author: razzeeeCreated Jan 3, 2025Updated Aug 21, 2025
Labelsbug/needs-info

What's not working?

I'm running into problems trying to upgrade to redwood 8. Specifically, when running tests, they throw warnings when using routes and seem to not render correctly after that.

Error: Uncaught [TypeError: _router.routes.project is not a function]

As first mentioned in https://community.redwoodjs.com/t/redwood-v8-0-0-upgrade-guide/7250/28?u=razzeee

How do we reproduce the bug?

  1. Checkout https://github.com/razzeee/redwoodjs-repro-route-not-function
  2. yarn
  3. yarn rw test web
  4. You should get errors/warnings in the log

The diff here, should be relevant, as that's the only change from current stock (new project) redwood https://github.com/razzeee/redwoodjs-repro-route-not-function/commit/fe63140c06dadf1ae687bfd6c6703236ef01c5dd

What's your environment? (If it applies)

No response

Are you interested in working on this?

  • I'm interested in working on this