Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug - Issue with Storybook #302

Open
ahziani opened this issue Oct 11, 2024 · 1 comment
Open

🐛 Bug - Issue with Storybook #302

ahziani opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ahziani
Copy link

ahziani commented Oct 11, 2024

Bug report

Summary

I just installed Storybook for my project using npx storybook@latest init following the official documentation. However, when I try to run Storybook, I encounter the following error:

Error: Cannot find module 'next/dist/client/components/navigation' at webpackMissingModule at ./node_modules/@storybook/nextjs/dist/export-mocks/navigation/index.mjs at options.factory ...

Environment

Next.js version: 12.3.1
Storybook version: 8.3.5
Node version: 18

@ahziani ahziani added the bug Something isn't working label Oct 11, 2024
@cf-remylenoir
Copy link
Contributor

Hi @ahziani ,

Thank you for reaching out to us.

Based on the information you provided, it seems your issue might be related to Next.js and Storybook rather than our template.

Nevertheless, have you run the build command before starting Storybook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants