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

fix: module.hot is not available in a static build #600

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

joscha
Copy link
Member

@joscha joscha commented Nov 3, 2016

In a static storybook build if there is an error loading a module it is trying to call .status() on module.hot, however module.hot is undefined at that point in time, because we are not in dev any longer.

This results in a config_api.js:68 Uncaught TypeError: Cannot read property 'status' of undefined(…) in a s static build, such as here for example: https://aui-cdn.atlassian.com/atlaskit/pr/stories/a87b34d72786fc22fe3328c20fed2fa6366bafe8/

In a static storybook build if there is an error loading a module it is trying to call `.status()` on `module.hot`, however `module.hot` is undefined at that point in time, because we are not in dev any longer.
@arunoda
Copy link
Member

arunoda commented Nov 3, 2016

Yep. This is something wanted.

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

Successfully merging this pull request may close these issues.

None yet

3 participants