Vue.config.js配置报错怎么解决?

weixin_38067167 2019-07-11 12:39:11
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. configuration.module.rules[12].include should be one of these: RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? } | [RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }] -> One or multiple rule conditions Details: configuration.module.rules[12].include should be an instance of RegExp configuration.module.rules[12].include should be a string. configuration.module.rules[12].include should be an instance of function configuration.module.rules[12].include[0] should be an instance of RegExp configuration.module.rules[12].include[0]: The provided value “packages” is not an absolute path! configuration.module.rules[12].include[0] should be an instance of function configuration.module.rules[12].include[0] should be an array: [RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }] configuration.module.rules[12].include[0] should be an object. configuration.module.rules[12].include should be an object. configuration.module.rules[12].include[0] should be an instance of RegExp configuration.module.rules[12].include[0]: The provided value “packages” is not an absolute path! configuration.module.rules[12].include[0] should be an instance of function configuration.module.rules[12].include[0] should be an array: [RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }] configuration.module.rules[12].include[0] should be an object.
...全文
950 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38082460 2019-07-11
  • 打赏
  • 举报
回复
你的配置写错了(Webpack 部分)。发出来看看。

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧