Skip to content
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

Insert 'yarn' command between 'cd storybook' and 'yarn bootstrap (--core)' #9708

Merged
merged 3 commits into from
Feb 6, 2020

Conversation

yeseouler
Copy link
Contributor

Signed-off-by: Yeseul Jeon yeseouler52@gmail.com

Issue:

What I did

This is the error message that I encountered when I executed 'yarn bootstrap --core' command without trying 'yarn' command before.

internal/modules/cjs/loader.js:796
    throw err;
    ^
Error: Cannot find module 'inquirer'
Require stack:
- C:\Users\Yeseul JEON\git\storybook\scripts\bootstrap.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Timeout.run [as _onTimeout] (C:\Users\Yeseul  JEON\git\storybook\scripts\bootstrap.js:32:20)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'C:\\Users\\Yeseul  JEON\\git\\storybook\\scripts\\bootstrap.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this  command.`

So I inserted 'yarn' command where it was missing in Contributing to Storybook:
(url: https://github.com/storybookjs/storybook/blob/master/CONTRIBUTING.md))
1. Testing against master > 1.Download the latest version of this project, and build it:
2. Reproductions > In the monorepo

Actually, this was already mentioned in the same page if you scroll down the page a little bit more: Development Guide > Initial Setup. But to keep a consistency of Setup guide & avoid a confusion, I hope the storybookjs team to consider updating upper two parts in the Contributing to Storybook page (CONTRIBUTING.md).

…ore)'

Signed-off-by: Yeseul Jeon <yeseouler52@gmail.com>
@shilman
Copy link
Member

shilman commented Feb 4, 2020

@yeseouler thanks for your PR! however, i'm not able to replicate the problem -- running yarn bootstrap or yarn bootstrap --core works for me without needing to run yarn first... 🤷‍♂

@yeseouler
Copy link
Contributor Author

Thanks for taking time to review my PR!

I understand that you were not able to replicate this error since all the Mac (iOS) users in my team didn't encounter this problem when they run yarn bootstrap --core or yarn bootstrap without running yarn first.

I'm not 100% sure, however, I think that error appears to windows environment like mine since OS was the only difference when me and my team members followed the steps written in Contributing to Storybook (CONTRIBUTING.md).

Just to help newbies to storybookjs like myself, could you please reconsider adding at least a comment something like

try yarn command

if it doesn't work like mine did?

Also, since running yarn command before trying yarn bootstrap --core or yarn bootstrap
didn't come out from nowhere (it's already written in Development Guide > Initial Setup), I believe there won't confuses other users but help them if the storybookjs updates the current document. 😬

@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Feb 6, 2020
@shilman shilman added this to the 5.3.x milestone Feb 6, 2020
@shilman
Copy link
Member

shilman commented Feb 6, 2020

Hi @yeseouler I modified your PR slightly to make the instructions a little more explicit. Thanks so much for your contribution to Storybook! 감사합니다! 🙏

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘했어요

@shilman shilman merged commit 3a1b46d into storybookjs:next Feb 6, 2020
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Feb 12, 2020
shilman added a commit that referenced this pull request Feb 12, 2020
Insert 'yarn' command between 'cd storybook' and 'yarn bootstrap (--core)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants