Ellie
0
Q:

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,
    }
}
0
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,
    }
}
0
    if (config.optimization.splitChunks) {
      config.optimization.splitChunks.cacheGroups.shared.enforce = true;
    }
0

New to Communities?

Join the community