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

Add warning when module is missing in storiesOf #1525

Merged
merged 1 commit into from
Jul 26, 2017

Conversation

igor-dv
Copy link
Member

@igor-dv igor-dv commented Jul 26, 2017

Issue: Based on conversation in #1506

What I did

I've added a warning when module parameter is not provided

image

How to test

  1. Run cra-kitchen-sync
  2. Find some story and remove module parameter
  3. Should be a warning in devtools console

@ndelangen
Copy link
Member

Go ahead and merge @igor-dv 👏

@igor-dv igor-dv merged commit 949f62f into release/3.2 Jul 26, 2017
@ndelangen ndelangen deleted the hmr-warning-on-storiesOf branch July 26, 2017 11:41
bryanstearns added a commit to infinitered/ignite-bowser that referenced this pull request Jan 26, 2019
The Storybook fix for this issue storybookjs/storybook#1525
adds a warning when `storiesOf` doesn’t have a `module` parameter.

The `module` parameter is necessary to enable hot-module-replacement to work right:
storybookjs/storybook#2022 (comment)
jamonholmgren pushed a commit to infinitered/ignite-bowser that referenced this pull request Mar 11, 2019
The Storybook fix for this issue storybookjs/storybook#1525
adds a warning when `storiesOf` doesn’t have a `module` parameter.

The `module` parameter is necessary to enable hot-module-replacement to work right:
storybookjs/storybook#2022 (comment)

[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants