-
-
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
Static builds fail while dev-server works fine, getCode() is undefined error #9261
Comments
Looks like there isn't a way to disable this preset from being added?
|
@weyert Any chance you can submit a PR for this? |
@shamin I have made a PR for it :) And Happy New Year :) |
Great Caesar's ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-rc.7 containing PR #9280 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Unfortunately the addition of Removing |
Describe the bug
I am having an issue with Storybook failing to make a successful static build using
build-storybook
-command whilestart-storybook
-command is working as expected.I noticed when change the file
@storybook/core/dist/server/common/babel.js
in such manner that thecreateProdPresets
-method doesn't return thebabel-preset-minify
the build is succesful. For example, like this:The following errors is given by Storybook when building:
To Reproduce
Still working on a reproducible case
Expected behavior
I would expect that running
build-storybook
-command would succeed without errors just like running thestart-storybook
-commandCode snippets
If applicable, add code samples to help explain your problem.
System:
Additional context
I am using a customised version of
kcd-scripts
which adds TypeScript support forbabel
andwebpack
.The text was updated successfully, but these errors were encountered: