From 75fc85d22df9d5745ecd374883125f00e186141d Mon Sep 17 00:00:00 2001 From: feugy Date: Mon, 5 Sep 2022 08:51:32 +0200 Subject: [PATCH] chore: fix typings --- packages/next/build/analysis/get-page-static-info.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/next/build/analysis/get-page-static-info.ts b/packages/next/build/analysis/get-page-static-info.ts index 4c65fa8a2014..6147cf4bebcd 100644 --- a/packages/next/build/analysis/get-page-static-info.ts +++ b/packages/next/build/analysis/get-page-static-info.ts @@ -182,7 +182,9 @@ function getMiddlewareConfig( matcher(glob) } catch (err) { throw new Error( - `A middleware/edge exported 'config.allowDynamic' is not a valid pattern: ${err.message}` + `A middleware/edge exported 'config.allowDynamic' is not a valid pattern: ${ + (err as Error).message + }` ) } }