-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
TypeError: routes is not iterable #20
Comments
Can you explain your routes setup a bit more please? |
Sure. Rather than having a That is because it doesn't exist! My routes are in |
Try adding this code somewhere and give me the output please: const router = await this.app.container.make('router')
router.commit()
console.log(router.toJSON()) Alternatively, try looking at this issue: #8 You may be facing the same problem. And also if you can make a minimal reproduction, it would be ideal to be able to help you :) |
I thought this may be related to having routes in a folder but I created a new project from scratch and moved the |
I reviewed #8 and can confirm I'm already using subpath imports. |
Please provide a reproduction otherwise I can't help :/ |
I've just installed
tuyau
and tried to generate usingnode ace tuyau:generate
but I get the error:TypeError: routes is not iterable
. My routes are located in a folder in individual folder rather than in oneroutes.ts
file, wondering if that's the reason? Anything I can do to fix?The text was updated successfully, but these errors were encountered: