Skip to content

Commit 9782906

Browse files
Next.js: Fix wrong Next.js framework reference
1 parent a400b02 commit 9782906

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

code/frameworks/experimental-nextjs-vite/src/export-mocks/headers/cookies.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// is the only way to achieve it actually being a singleton
44
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
55
// @ts-ignore we must ignore types here as during compilation they are not generated yet
6-
import { headers } from '@storybook/nextjs/headers.mock';
6+
import { headers } from '@storybook/experimental-nextjs-vite/headers.mock';
77
import { fn } from '@storybook/test';
88

99
import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies';

code/frameworks/nextjs/src/preview.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Addon_DecoratorFunction, Addon_LoaderFunction } from 'storybook/in
55
// is the only way to achieve it actually being a singleton
66
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
77
// @ts-ignore we must ignore types here as during compilation they are not generated yet
8-
import { cookies, headers } from '@storybook/nextjs/headers.mock';
98
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
109
// @ts-ignore we must ignore types here as during compilation they are not generated yet
1110
import { createNavigation } from '@storybook/nextjs/navigation.mock';

0 commit comments

Comments
 (0)