From 03fd65a0997a1144010a242109bc1c9f4c095815 Mon Sep 17 00:00:00 2001 From: Armand Abric Date: Fri, 9 Jul 2021 11:26:55 +0200 Subject: [PATCH] Compatibility with next v11.2 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 5516ced..b12aaed 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,7 +2,7 @@ import { action } from '@storybook/addon-actions'; import { makeDecorator } from '@storybook/addons'; import React from 'react'; import Router, { NextRouter } from 'next/router'; -import { RouterContext } from 'next/dist/next-server/lib/router-context'; +import { RouterContext } from 'next/dist/shared/lib/router-context'; export const withNextRouter = makeDecorator({ name: 'NextRouter',