Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terrymun/nextjs15-storybook
Reproduction on storybook failures when running next15
https://github.com/terrymun/nextjs15-storybook
Last synced: 18 days ago
JSON representation
Reproduction on storybook failures when running next15
- Host: GitHub
- URL: https://github.com/terrymun/nextjs15-storybook
- Owner: terrymun
- Created: 2024-10-21T21:21:48.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T21:21:52.000Z (2 months ago)
- Last Synced: 2024-12-01T12:25:25.325Z (22 days ago)
- Language: JavaScript
- Size: 4.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Storybook + Next.js 15 demo
This repo aims to reproduce the error when building storybook (but not serving it) when using it with the latest version of nextjs, i.e. v15.
## How to reproduce the bug
1. Run `npm install --force` after downloading the repo
2. Run `npm run dev` and notice how clicking the main button on the page will trigger an alert, based on the response from a Next.js server action
3. Run `npm run storybook` and notice that storybook will failNow, go into `Page.action.ts` and uncomment a different line so that the reference to `next/header`'s `header()` is removed. Run `npm run storybook` and it will work again.