scttcper / koa2-swagger-ui

Swagger UI as Koa v2 middleware
MIT License
103 stars 32 forks source link

TypeError: koaSwagger is not a function #220

Closed cgguevara closed 2 years ago

cgguevara commented 2 years ago

after create an instance of koaSwagger = require('koa2-swagger-ui')

when I try to use it setting in the router router.use(koaSwagger({ swaggerOptions: { spec } }));

It's giving the error TypeError: koaSwagger is not a function

scttcper commented 2 years ago

its in the readme