Closed raultrysw closed 5 years ago
the error syas
Error: Server-side bundle should have one single entry file. Avoid using CommonsChunkPlugin in the server config
so try to move the commonChunkPligin in your base.config.js to client.config.js ?
@947133297 I didn't use CommonsChunkPlugin , but still face the same problem.
'optimization': {
'splitChunks': {
'chunks': 'all',
'cacheGroups': {
'styles': {
'name': 'styles',
'test': /\.css$/,
'chunks': 'all',
'enforce': true
}
}
},
'runtimeChunk': true,
'minimize': true
},
my plugins
'plugins':
isProd ?
[
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
'filename': isProd ? '[name].[hash].css' : '[name].css',
'chunkFilename': isProd ? '[id].[hash].css' : '[id].css'
})
] : [
new VueLoaderPlugin(),
new FriendlyErrorsPlugin()
]
the error
Unhandled rejection Error: Server-side bundle should have one single entry file. Avoid using CommonsChunkPlugin in the server config.
Hello folks.
Thank your for your interest in this project.
However, your issue is a usage/support question, and the issue tracker is reserved exclusively for bug reports and feature requests (as outlined in our Contributing Guide).
We encourage you to ask it on the forum , Stack Overflow or on our Discord chat and are happy to help you out there.
Hi, i dont know if it is the apropiate site to issue this problem but I didnt where to issue this.
My problem is that when I run webpack --config bundler/webpack/webpack-server.config.js for get the bundle of entry server the build process throws me this error:
I dont know what to do... Watching the documentation doesn't helps me...
This are the webpacks files:
webpack-base.config.js
webpck-server.config.js
webpack-client.config.js
Please help =)