From e9908584faa4967215ea8b69b3805e441fe1c02e Mon Sep 17 00:00:00 2001 From: Karol Rzotki Date: Mon, 18 Nov 2024 11:18:56 +0100 Subject: [PATCH] fix(generators): Update RouterContext import --- .storybook/preview.js | 2 +- .../src/generators/storybook-init/files/preview.js__tmpl__ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.storybook/preview.js b/.storybook/preview.js index ad667f1..f30b140 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,5 +1,5 @@ import { addParameters } from '@storybook/react'; -import { RouterContext } from 'next/dist/shared/lib/router-context'; +import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime"; import { rest } from 'msw'; import { mswDecorator } from 'msw-storybook-addon'; diff --git a/packages/gene-tools/src/generators/storybook-init/files/preview.js__tmpl__ b/packages/gene-tools/src/generators/storybook-init/files/preview.js__tmpl__ index ad667f1..f30b140 100644 --- a/packages/gene-tools/src/generators/storybook-init/files/preview.js__tmpl__ +++ b/packages/gene-tools/src/generators/storybook-init/files/preview.js__tmpl__ @@ -1,5 +1,5 @@ import { addParameters } from '@storybook/react'; -import { RouterContext } from 'next/dist/shared/lib/router-context'; +import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime"; import { rest } from 'msw'; import { mswDecorator } from 'msw-storybook-addon';