From 6a1c09afa89bfe5aa0901fc6167dd4ca42cf651c Mon Sep 17 00:00:00 2001 From: Dimitris Klouvas Date: Thu, 14 Sep 2023 13:51:54 +0300 Subject: [PATCH] fix(nextjs): Drop subpath import of NextMiddleware type --- .changeset/khaki-mice-fly.md | 2 ++ packages/nextjs/src/server/withClerkMiddleware.ts | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .changeset/khaki-mice-fly.md diff --git a/.changeset/khaki-mice-fly.md b/.changeset/khaki-mice-fly.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/khaki-mice-fly.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/nextjs/src/server/withClerkMiddleware.ts b/packages/nextjs/src/server/withClerkMiddleware.ts index b75766d0b9..656f790130 100644 --- a/packages/nextjs/src/server/withClerkMiddleware.ts +++ b/packages/nextjs/src/server/withClerkMiddleware.ts @@ -1,7 +1,6 @@ import type { RequestState } from '@clerk/backend'; import { constants, debugRequestState } from '@clerk/backend'; -import type { NextMiddleware } from 'next/dist/server/web/types'; -import type { NextFetchEvent, NextRequest } from 'next/server'; +import type { NextFetchEvent, NextMiddleware, NextRequest } from 'next/server'; import { NextResponse } from 'next/server'; import {