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
Error in static-app build #8744
Comments
My team ran into the same issue. We tracked it back to an update to @babel/traverse. We Changed our package.json from YMMV but hopefully that helps others or helps debug for the storybook team. Edit: Looks like I misread things and the page I linked to is the fix, not the cause (didn't read closely enough in our mad scramble to fix). You get the idea though ;) |
Ohk... Thanks very much @aaronbarker for the insight... |
+1 |
@aaronbarker |
I'm closing this issue now since the problem has been fixed. A very big thank you to @aaronbarker for pointing me in the right direction... |
I'm not sure that fixes it as the issue is intermittent (for me it usually fails the first attempt after removing node_modules and yarn.lock), but subsequent Adding @babel/traverse@7.6.0 did not resolve for me (for a fresh install), and looking at yarn.lock I can see 7.7.2 being resolved by other dependencies. Attempting to force resolution of 7.6.0 via the package.json I'd be interested to see if your build succeeds the first attempt after removing node_modules and yarn.lock @kwameopareasiedu |
@matt-shine delete yarn-lock and node modules solve it for me! |
There seems to be an issue with version
5.2.5
which causes an error in the build of a static app.The odd thing is that downgrading (all the way to 5.1.8) does not seem to fix the error
To Reproduce
Steps to reproduce the behavior:
5.2.5
using npxnpm run build-storybook
index.html
of generated appExpected behavior
According to your docs... the command should build a fully functional static app I can deploy anywhere
Screenshots
Code snippets
Here's my current dev-dependencies:
Heres my webpack.config.js for storybook
System:
The text was updated successfully, but these errors were encountered: