-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Module build failed: TypeError: Cannot read property '0' of undefined #159
Comments
@AlexanderTserkovniy Could you remove |
Otherwise please make config as simple as possible and enhance it with e.g |
So, when I remove |
@AlexanderTserkovniy It's an comfirmed issue with |
Found solution here if someone still having this problem. Works perfectly! So my changes looks like this: const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports.plugins.push(new ExtractTextPlugin("styles.css"));
module.exports.module.rules[1] = {
test: /\.css$/,
exclude: /node_modules/,
loader: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',
loader: [
'css-loader?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]',
'postcss-loader'
]
})
}; Thanks guys! btw @michael-ciniawsky |
I see 😛 likely never had an issue until now 🙏 So the solution is to use |
Hi guys,
So as probably most of us, I have this issue in prod mode. Here are details:
Run script:
NODE_ENV=production webpack -p
Output:
Config file base:
Production extension:
Could you help me, I rummaged everything...
The text was updated successfully, but these errors were encountered: