Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Quell storybook HMR warnings #149

Merged
merged 1 commit into from
Mar 11, 2019
Merged

Conversation

bryanstearns
Copy link
Member

The Storybook fix for this issue storybookjs/storybook#1525
adds a warning when storiesOf doesn’t have a module parameter. This leads to warnings during the storyshots test for each of the provided Bowser components:

 PASS  test/storyshots.test.ts (8.026s)
  ● Console

    console.warn node_modules/@storybook/client-logger/dist/index.js:13
      Missing 'module' parameter for story with a kind of 'Text'. It will break your HMR
    console.warn node_modules/@storybook/client-logger/dist/index.js:13
      Missing 'module' parameter for story with a kind of 'Button'. It will break your HMR
    [...]

Any components generated with ignite generate component will also trigger this warning.

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

I've added it to all our components' story files, as well as to the component template.

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 jamonholmgren merged commit 5663289 into master Mar 11, 2019
@jamonholmgren jamonholmgren deleted the fix-storybook-hmr-warnings branch March 11, 2019 17:31
infinitered-circleci pushed a commit that referenced this pull request Apr 9, 2019
# [3.1.0](v3.0.0...v3.1.0) (2019-04-09)

### Bug Fixes

* **boilerplate:** Remove double slash typo on setup-root-store.ts ([#160](#160) by [@dashracer](https://github.com/dashracer)) ([941a1fe](941a1fe))
* **tests:** Quell storybook HMR warnings ([#149](#149) by [@bryanstearns](https://github.com/bryanstearns)) ([5663289](5663289)), closes [/github.com/storybookjs/storybook/issues/2022#issuecomment-336027878](https://github.com//github.com/storybooks/storybook/issues/2022/issues/issuecomment-336027878)
* **typescript:** TypeScript should apply to `app` instead of `src` ([#167](#167) by [@guhungry](https://github.com/guhungry)) ([b737f08](b737f08))

### Features

* **i18n:** Migrate to react-native-localize ([#165](#165) by [@guhungry](https://github.com/guhungry)) ([2c73ff4](2c73ff4))
* **mobx:** Update to mobx-state-tree version 3.12.2 ([#166](#166) by [@guhungry](https://github.com/guhungry)) ([7911213](7911213))
@infinitered-circleci
Copy link

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants