-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Question: what is "module" the second argument of storiesOf? #2022
Comments
A colleague at my workplace has suggested that |
that's indeed it @elisechant ! Storybook needs a reference to the file/module where your story-code is int to enable hpt-module-replacement. If you do not supply it, you'd need to refresh your browser for every change you make to your component & story code. I hope this helps! |
How we overcome the ESLint error that |
https://eslint.org/docs/user-guide/configuring#specifying-environments You tell eslint that the code will run in node and it should recognised that alternatively this is a solution too: |
thanks @ndelangen adding following to my eslintrc file worked for me
|
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)
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]
# [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))
For this code, what is
module
? and what can you do with it?The text was updated successfully, but these errors were encountered: