storybookjs / frontpage

🌐 The website for storybook.js.org
https://storybook.js.org
MIT License
214 stars 120 forks source link

[next]:storybook: Error: Cannot find module next/legacy/image #599

Closed Alperec closed 1 year ago

Alperec commented 1 year ago

Details

I updated nextjs to the latest version and decided to move on to storybook version 7, now after launch I get the error Cannot find module 'next/legacy/image'

main.ts

import type { StorybookConfig } from "@storybook/nextjs";

const config: StorybookConfig = {
    stories: [
        "../stories/**/*.mdx",
        "../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
    ],
    addons: [
        "@storybook/addon-links",
        "@storybook/addon-essentials",
        "@storybook/addon-onboarding",
        "@storybook/addon-interactions"),
    ],
    framework: {
        name: "@storybook/nextjs",
        options: {},
    },
    docs: {
        autodocs: "tag",
    },
};
export default config;
Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2023-09-14 Π² 10 23 31
winkerVSbecks commented 1 year ago

This is the repository for Storybook docs. Please open an issue on https://github.com/storybookjs/storybook or drop by our discord: https://discord.gg/storybook