-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Nx Storybook does not work by default with Next.js preset #27233
Labels
outdated
scope: nextjs
Issues related to NextJS support for Nx
scope: storybook
Issues related to Storybook support in Nx
type: bug
Comments
FrozenPandaz
pushed a commit
that referenced
this issue
Aug 21, 2024
…#27510) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> With the introduction of App Router by NextJs, components may not live in a `components` directory. Storybook config should reflect this. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Stories path should be a glob from project root ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #27233 (cherry picked from commit afe83b4)
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
outdated
scope: nextjs
Issues related to NextJS support for Nx
scope: storybook
Issues related to Storybook support in Nx
type: bug
Current Behavior
Storybook does not work after initiating storybook configuration with nx next generator
Expected Behavior
Nx next storybook generator will work
GitHub Repo
https://github.com/Demianeen/storybook-next-nx-repro
Steps to Reproduce
pnpm create nx-workspace@latest storybook-next --preset next
with all options by defaultcd storybook-next
pnpm nx g @nx/next:storybook-configuration storybook-next
with all options by defaultpnpm nx storybook storybook-next
Nx Report
Failure Logs
Package Manager Version
9.4.0
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: