使用与API架构不匹配的配置对象初始化Webpack。

报这个错误

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

 - configuration.module.rules[2].options should be one of these:

   object | string

   -> Shortcut for use.options

   Details:

    * configuration.module.rules[2].options should be an object.

    * configuration.module.rules[2].options should be a string.



代码:

entry: {

app: path.join(__dirname, '../src/client-entry.js'),

vendor: ['vue']

},

output: {

filename: '[name].[chunkhash:8].js',

publicPath: cdnConfig.host

},


_李
浏览 2808回答 1
1回答

橋本奈奈未

 configuration.module.rules[2]你的rules是配置有问题
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Node.js
Vue.js