From 5c9b6b89413333dc20c08dc3d285233ec2b837ec Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Thu, 12 Oct 2023 17:30:17 +0200 Subject: [PATCH] Fix Next.js 12 --- code/frameworks/nextjs/src/dependency-map.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/frameworks/nextjs/src/dependency-map.ts b/code/frameworks/nextjs/src/dependency-map.ts index 57170a88329b..402f7c1ff433 100644 --- a/code/frameworks/nextjs/src/dependency-map.ts +++ b/code/frameworks/nextjs/src/dependency-map.ts @@ -9,14 +9,20 @@ const mapping: Record> = { '>=11.1.0 <13.5.0': { 'next/dist/shared/lib/router-context': 'next/dist/shared/lib/router-context', }, +<<<<<<< Updated upstream '<13.5.0': { +======= + '>=13': { + 'next/dist/shared/lib/hooks-client-context.shared-runtime': + 'next/dist/shared/lib/hooks-client-context', + }, + '< 13.5.0': { +>>>>>>> Stashed changes 'next/dist/shared/lib/router-context.shared-runtime': 'next/dist/shared/lib/router-context', 'next/dist/shared/lib/head-manager-context.shared-runtime': 'next/dist/shared/lib/head-manager-context', 'next/dist/shared/lib/app-router-context.shared-runtime': 'next/dist/shared/lib/app-router-context', - 'next/dist/shared/lib/hooks-client-context.shared-runtime': - 'next/dist/shared/lib/hooks-client-context', }, };