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
prettier should be a dev dep #14714
Comments
Why should prettier be a dev dep? Storybook directly depends on it to function. |
Having prettier as a dependency indeed can cause problems when your own projects wants to use prettier as well (which I guess is often the case). We use prettier After some investigation we realized this was caused by the Storybook's prettier sometimes being loaded instead of "our" prettier (which can indeed happen with NPM and Yarn v1). We had to use the I think there are two possible ways to solve this:
TL;DR: Could Storybook require prettier |
@ndelangen do you know why we're using "~2.2.1" instead of "^2.2.1"? you changed it last. |
I do not see a reason for this at all. Let's upgrade! |
ah i didnt realize storybook depends on prettier to function. i thought prettier was just a dev dependency used to format the code before it's pushed to git, not something that is required to actually run the storybook dependencies |
Jiminy cricket!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.0-alpha.23 containing PR #15298 that references this issue. Upgrade today to the
|
Describe the bug
In the following: prettier is a regular dependency when it should be a devDependency
The text was updated successfully, but these errors were encountered: