-
-
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
storybook-build injects "undefined" string into the "head" #1239
Comments
Actually, I've just checked that it does this even for the more simple const path = require('path');
const genDefaultConfig = require('@storybook/react/dist/server/config/defaults/webpack.config.js');
module.exports = (config, env) => {
const sbConfig = genDefaultConfig(config, env);
sbConfig.resolve.modules = [path.resolve(__dirname, '../app'), path.resolve(__dirname, '../node_modules')];
return sbConfig;
}; |
Having this issue as well with no extra webpack config file. |
Ugh, sorry about that.
|
@shilman Regards, |
@shilman Thanks for the response, |
Thanks guys. Looks like this feature wasn't properly tested before it went out, so I'll dig in now and see if I can get a fix out. Sorry for the hassle and thanks for reporting so quickly! 👍 |
Ok, have reproduced the bug and suspect it's due to this PR: #1134 (review) I should be able to get out to a fix in the next hour. 🚀 |
Ok I have a fix ready here: #1248 @pierrecholhot @PavelPolyakov mind giving it a quick review and test? There are testing instructions in the PR. Once you verify, I can push out a fix. Many thanks. |
hi @shilman , thanks for the fix. I would like to help you to test it, but I have a little idea how to install the version which lives in the |
Hi @PavelPolyakov. If you can check out the branch on your machine, the commands in the "how to test" should be everything needed to test it? |
@shilman , thank you. |
Thanks so much @PavelPolyakov! Will try to get the fix released soon. 🙇 |
This has been released in |
@shilman |
Hi,
Trying to upgrade the storybook to the v3 and webpack 2 config.
And at the end in the
storybook-static/index.html
I see the next:custom webpack config is used:
https://gist.github.com/PavelPolyakov/df6453e74e6eb47540e5ddfac61add58
I also must say that the dynamic storybook looks well:
any hints what can I explore? as it looks a bit ugly:
Regards,
The text was updated successfully, but these errors were encountered: