-
-
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
Webpack 2 config not working loading modules. #646
Comments
It's not supported yet. |
FYI: This package may resolve same issue. const downgrade = require('downgrade-webpack-loader-config')
const webpack2Conf = require('../webpack.config') // webpack v2 config
const v1LoaderConf = downgrade(webpack2Conf.module.rules)
// webpack v1 compatible config
module.exports = {
module: v1LoaderConf,
} |
Is there timeline on using webpack 2? I am in the process of upgrading to webpack 2 and the only outstanding thing is
But this is not playing nice with react-storybook |
@aray12 I just ran into this while upgrading to Webpack 2.x after setting the See docs:
For example, here is my project {
"presets": [
["es2015", {"modules": false}],
"react"
]
} and adding this {
"presets": [
["es2015", {"modules": "commonjs"}],
"react"
]
} 📝 I ran into similar issues with not being able to run mocha tests due to ES6 modules no longer being transpiled and I had to take similar action to fix that. 📝 Babel also enables environment specific config via |
@erikthedeveloper Thanks! I haven't tried it out yet but it is good to know that storybook overwrites the |
Thanks @erikthedeveloper I'm planning to migrate Storybook to Webpack2 this week or next. |
still no support for webpack 2? |
I'm attempting to use react-storybook to read my project's original webpack config which uses Webpack 2 syntax. Under the storybook directory, I've add a
webpack.config.js
file with the following:When storybook first runs, I get:
then eventually:
It looks as though react-storybook does not handle the webpack 2 config appropriately.
The webpack module config is:
The text was updated successfully, but these errors were encountered: