ERROR in chunk styles~vendors [initial] static/css/0.chunk.98bea80741e97b2a4ece.css Cannot read property 'pop' of undefined code example
Example 1: ERROR in chunk styles~vendors [initial] static/css/0.chunk.98bea80741e97b2a4ece.css Cannot read property 'pop' of undefined
cacheGroups: {
index: {
name: 'indexStyles',
test: (m, c, entry = 'index') => {
return m.constructor.name === 'CssModule' && recursiveIssuer(m) === entry;
},
chunks: 'all',
enforce: true,
}
}
Example 2: ERROR in chunk styles~vendors [initial] static/css/0.chunk.98bea80741e97b2a4ece.css Cannot read property 'pop' of undefined
entry: {
index: './src/index.jsx',
},
...
cacheGroups: {
indexStyles: {
name: 'index',
test: (m, c, entry = 'index') => {
return m.constructor.name === 'CssModule' && recursiveIssuer(m) === entry;
},
chunks: 'all',
enforce: true,
}
}
Example 3: ERROR in chunk styles~vendors [initial] static/css/0.chunk.98bea80741e97b2a4ece.css Cannot read property 'pop' of undefined
if (config.optimization.splitChunks) {
config.optimization.splitChunks.cacheGroups.shared.enforce = true;
}