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]: Next.js-Vite fails in new Next.js project #30303

Open
shilman opened this issue Jan 18, 2025 · 2 comments · May be fixed by storybookjs/vite-plugin-storybook-nextjs#31
Open

[Bug]: Next.js-Vite fails in new Next.js project #30303

shilman opened this issue Jan 18, 2025 · 2 comments · May be fixed by storybookjs/vite-plugin-storybook-nextjs#31

Comments

@shilman
Copy link
Member

shilman commented Jan 18, 2025

Describe the bug

What I did

  • pnpx create next-app
  • pnpx storybook@latest init
  • manually replace @storybook/nextjs with @storybook/experimental-nextjs-vite

Image

Workaround

  • Manually install styled-jsx

Reproduction link

Reproduction steps

No response

System

any?

Additional context

No response

@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented Jan 22, 2025

@shilman I can't reproduce it :/ Have you used Next.js init settings which are different from the default settings?

@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented Jan 22, 2025

@shilman Could you please try out the latest canary release of the vite-plugin-experimental-next?

// package.json
{
 ...
  "pnpm": {
    "overrides": {
      "vite-plugin-storybook-nextjs": "1.1.2--canary.31.ce898c2.0",
      // optionally try to add this line additionally
      "@storybook/experimental-nextjs-vite>vite-plugin-storybook-nextjs": "1.1.2--canary.31.ce898c2.0"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants