Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have some confusion, when i use nest/swagger it show the mix used of ts and js #23

Open
JinyanLai opened this issue Aug 18, 2022 · 1 comment

Comments

@JinyanLai
Copy link

I have some confusion, when I use nest/swagger it shows the mix used of ts and js. and there was not nest-koa-adapter/src folder, there was only nest-koa-adapter/dist

TypeError: res.type is not a function
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/@nestjs/swagger/dist/swagger-module.js:45:17
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/nest-koa-adapter/src/KoaAdapter.ts:146:7
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:103:27
    at exports.AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:92:31
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-shimmer/src/shimmer.js:22:21
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:42:32)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-router/lib/router.js:372:16
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:42:32)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:34:12
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-router/lib/router.js:377:31)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:103:27
    at exports.AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:92:31
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:42:32)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:148:17
@wayward-man
Copy link

I have some confusion, when I use nest/swagger it shows the mix used of ts and js. and there was not nest-koa-adapter/src folder, there was only nest-koa-adapter/dist

TypeError: res.type is not a function
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/@nestjs/swagger/dist/swagger-module.js:45:17
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/nest-koa-adapter/src/KoaAdapter.ts:146:7
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:103:27
    at exports.AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:92:31
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-shimmer/src/shimmer.js:22:21
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:42:32)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-router/lib/router.js:372:16
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:42:32)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:34:12
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-router/lib/router.js:377:31)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:103:27
    at exports.AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:92:31
    at dispatch (/Users/hiretual/gitClone/bmc-v2/backend/node_modules/koa-compose/index.js:42:32)
    at /Users/hiretual/gitClone/bmc-v2/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/koa.js:148:17

same issue, did u solve it bro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants