From 169818ece4380198a3b1fee4055bf6dfe54c75ff Mon Sep 17 00:00:00 2001 From: Ze-Hao Wang Date: Sun, 16 Jul 2023 22:35:20 +0800 Subject: [PATCH] fix: update @koa/multer import keyword in koa.hbs --- packages/cli/src/routeGeneration/templates/koa.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/routeGeneration/templates/koa.hbs b/packages/cli/src/routeGeneration/templates/koa.hbs index a4cb818d3..3107e0af7 100644 --- a/packages/cli/src/routeGeneration/templates/koa.hbs +++ b/packages/cli/src/routeGeneration/templates/koa.hbs @@ -21,7 +21,7 @@ import type { IocContainer, IocContainerFactory } from '@tsoa/runtime'; import type { Middleware } from 'koa'; import type * as KoaRouter from '@koa/router'; {{#if useFileUploads}} -const multer = require('@koa/multer'); +import multer from '@koa/multer'; const upload = multer({{{json multerOpts}}}); {{/if}}