-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Webpack config breaks with storybook 2.1 #347
Comments
We've added some default configurations here: https://github.com/kadirahq/react-storybook/blob/master/CHANGELOG.md#v200. It comes with a default set of loaders similar to "Create React App". I suspect issues like this. That's why we have done a major release. Will do a release soon. |
Awesome thanks ! 👍 |
Now we only use the Create React App based config if there's no custom webpack config. This will fix issues like #347.
Now we only use the Create React App based config if there's no custom webpack config. This will fix issues like #347.
I just released a new version with |
Thanks for your reactivity, unfortunately, I get another issue now. The console displays this error :
|
weird. Is to possible for you to send me sample repo, where I can work on this? |
Hum not really, our Gihub repo is private. But the error is a bit weird, happens on Chrome and Firefox. (function() {
var g = ('undefined' === typeof window ? global : window) || {}
_crypto = (
g.crypto || g.msCrypto || require('crypto')
)
module.exports = function(size) {
// Modern Browsers
if(_crypto.getRandomValues) {
var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array
/* This will not work in older browsers.
* See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues
*/
_crypto.getRandomValues(bytes);
return bytes;
}
else if (_crypto.randomBytes) {
return _crypto.randomBytes(size)
}
else
throw new Error(
'secure random number generation not supported by this browser\n'+
'use chrome, FireFox or Internet Explorer 11'
)
}
}())
/** WEBPACK FOOTER **
** node_modules/webpack/~/node-libs-browser/~/crypto-browserify/rng.js
**/ We can clearly see that _crypto is not defined here. Is it some sort of transpiling/webpack issue ? |
May be this is related to a transpiling error. I think we'll go with some essentials rather using |
Better check whether we're getting this error because of stage-0 first. On Wed, Aug 3, 2016, 11:11 PM Arunoda Susiripala notifications@github.com
MN MUHAMMED THANISH |
@mnmtanish but these features can be buggy. We anyway allow custom babeljs support if users need it. Here's some insight from dan about this. |
@moimael Could you try the version |
@arunoda |
Awesome. |
Hi,
I tried to update storybook to 2.1.0 but css modules do not seems to work with it.
I get a bunch of errors like this one :
Here is my webpack config which worked fine with storybook 1.41 :
Any idea on what's going on ? I tried to look at the doc to see if any changes were needed but it doesn't seems so.
Thanks.
The text was updated successfully, but these errors were encountered: