Cannot iterate over array of router middleware #557
Unanswered
callthecapital
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a method (bottom of the post) that dynamically generates my api routes but since upgrading Deno's Oak framework to the latest version, the method has stopped working. I've been getting the following error:
First, here are my types:
I had to update my types (above) for the latest version of oak due to RouterMiddleware now requiring that a generic type be passed:
Here is the method that is throwing the error from above:
I cannot figure out why my middleware property is now being treated as undefined. How do I turn it back into an iterable?
Beta Was this translation helpful? Give feedback.
All reactions