Shekhar Tyagi
Shekhar Tyagi
https://github.com/zxing-js/library I found this library, great library for QR code and barcode scanner
createApp is not working. ERROR: Invalid lazy handler result. It should be a function
```js import { createApp } from "h3" export default function eventHandlers(...handlers: Array) { const app = createApp() app.use(handlers.map((func) => defineEventHandler(func))) return app } ``` ERROR: [nuxt] [request error] [unhandled] [500]...
@nopeless I tried this and it worked ```javascript handlers.reduce((a, h) => a.use(eventHandler(h)), app).handler ```
@nopeless No it wasn't working without .handler
You can also try this I am using in my project, This function creates an event handler that executes all of the event handlers passed to it in the order...