top | item 40219410

(no title)

mattwad | 1 year ago

What are you talking about WRT Koa? Express 4 does not support async/await natively in its middleware. That means if your async method throws an error, you need to catch it and return it yourself or else it will just crash the app. That's one reason why I currently use Koa. Express 5 finally supports async/await and it is only now being officially released.

discuss

order

cypress66|1 year ago

You can fix async await with express by just installing a package.

mbork_pl|1 year ago

Which package?