You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
error: Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
...group.middleware as [],
^
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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