-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
mark babel-loader as a dependency #4116
Comments
Yes, we need to update those instructions. If you'd like to open a PR, please refer to https://github.com/storybooks/storybook/blob/master/MIGRATION.md#babel-7 |
Hey @trippingtarballs would you be able to open a PR to fix? 🙇 |
@ndelangen I can take this on if @trippingtarballs haven't had the chance to. Should I update the instructions to say |
@annezhou920 that would be really welcome! these are the peerDependencies for react: here's vue: here's angular: here's html: They all have the babel-loader in common |
@ndelangen it'll be my first time making a PR for the OSS community. i have a branch ready to be pushed up but i'm getting permission errors. do i need to have permission to push up to the repo? nvm! i figured i had to make a fork...i'm a noob at this 😆 |
@annezhou920 happy to welcome you into the OSS community! You're doing great! |
1. error when start storybook storybookjs/storybook#4116 2. use [email protected] to avoid storybookjs/storybook#5249
According to the instructions to stand-up a Storybook React project all one need to do, from within their project;
However, as see in the source for the
package.json
of@storybook/react
(extract below), the need forbabel-loader
is marked as apeerDependencies
. As in, the consumer of@storybook/react
must provide their preferred version ofbabel-loader
.However, without
babel-loader
installed by the consumer, and with@storybook/react
installed in their React project, the followingbabel
error is returned when attempting to invokestart-storybook
;Either the installation instructions for
@storybook/react
should includebabel-loader
as an additional dependency, orbabel-loader
should be listed in thedependencies
section of thepackage.json
for the@storybook/react
project.The text was updated successfully, but these errors were encountered: