-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fix Source View in Nextjs projects #21029
Fix Source View in Nextjs projects #21029
Conversation
Was it default Alternatively you could set this in the NextJS framework instead of the renderer, if it's only there it is causing trouble. |
I have to use the react renderer. Next.js does not have its own renderer. I don’t know about the first part of your question :/ |
I'm pretty sure you can set parameters in frameworks the same way you'd do it in renderes, via the ...
export const parameters = {
docs: {
source: {
excludeDecorators: true,
}
}
}; |
2d2b6e3
to
d0ef23e
Compare
@JReinhold Changed, but unfortunately does not have any effect (see chromatic build). |
I'm still seeing weird sources in the published NextJS Storybook: https://634ff0d0ec053b270775979d-zjgrspsocr.chromatic.com/?path=/docs/example-button--docs Was this PR supposed to fix this, or am I missing something? Or maybe this only fixes it in dev mode? |
|
c6ee46c
to
5028df5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me! But I think I am missing why we need to drop the decorators in next exactly? Perhaps a comment explaining why there's problematic decorators would help?
30e064e
to
9543df1
Compare
@valentinpalkovic I re-enabled the test f5d5989 and it worked great! |
Resolves #20356
What I did
I have set the
parameters.docs.source.excludeDecorators
to true per default.How to test
yarn task --task sandbox --start-from auto --template nextjs/default-ts
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]