-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
During Storybook-dist TypeError: _interopRequireDefault is not a function #6928
Comments
@ndelangen seems like another |
@nahumzs any chance you can give me access to your repo, so I can debug locally? |
the repo is: https://github.com/acl-services/paprika But I think I have found the reason why this is occurring: The next line of code use inside of a {[...Array(34).keys()].map(index => (
<br key={index} />
))} The other problem I was having is the use of which breaks the dist and sometimes the dev version: I guess the previous is because of the use of emotion by storybook? Both of these issues have alternatives. For the first one is clear, just write the code in a different way. For the problem for StyledComponents I'm not sure, while an easy alternative, for now, is the use of |
@nahumzs If you'd be able to do some debugging on that css issue on what exactly in our code is making that possible at development but impossible at static build, I'd be keen to know. Would be a great contribution to the project 👏 |
Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.1.4 containing PR #7051 that references this issue. Upgrade today to try it out! Closing this issue. Please re-open if you think there's still more to do. |
This appears to be an issue with storybook v5.1.3, which was addressed in this PR: storybookjs/storybook#6928 Upgrading storybook to 5.1.4 seems to fix this issue.
Describe the bug
Running storybook via
start-storybook
will render all my components and work perfectly. Once I try to export to a static version using build-storybook.The following error appears:
and none component is shown on storybook.
I tried to search for a solution but with no success so far. I don't know why storybook 4 and 5 work correctly and only fail during the build process.
To Reproduce
Steps to reproduce the behavior:
I don't know what exactly is causing this. But any ideas about how can debug the issue will be appreciated
Expected behavior
storybook-build
site behaves exactly like the one when runningstorybook-start
Screenshots
![Screen Shot 2019-05-31 at 1 16 32 PM](https://user-images.githubusercontent.com/19418590/58726365-2a105000-83a7-11e9-8965-da1490112857.png)
Code snippets
If applicable, add code samples to help explain your problem.
System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: