Development/Typescript3 [Typescript] TypeError: koa_1.default is not a constructor 이슈 - app.ts import Koa from 'koa'; const app = new Koa(); app.use(req => { req.body = 'hello world';}); export default app; - server.ts import app from './app'; app.listen(4000, () => { console.log("Server is Listening to port 4000");}); - Error # ts-node-dev --respawn ./src/server.ts TypeError: koa_1.default is not a constructor 해결 - app.ts import * as Koa from 'koa'; Development/Typescript 2023. 12. 23. [Typescript] AsyncIterator, AsyncIterable 오류 발생시 이슈 [0] node_modules/@types/graphql/subscription/subscribe.d.ts(17,12): error TS2304: Cannot find name 'AsyncIterator'. [0] node_modules/@types/graphql/subscription/subscribe.d.ts(29,12): error TS2304: Cannot find name 'AsyncIterable'. 해결 tsconfig.json 파일에 esnext.asynciterable 추가. Development/Typescript 2023. 12. 23. [Typescript] Graphql Health Check 질문 Q. Typescript Graphql Health Check A. Sure, let's create a simple health check using GraphQL and TypeScript. In this example, we'll create a GraphQL query that checks the health of your application. First, make sure you have Node.js and npm installed on your machine. Then, create a new project folder and run: $ npm init -y $ npm install express express-graphql graphql $ npm install -D typescr.. Development/Typescript 2023. 12. 20. 이전 1 다음