设为首页 加入收藏

TOP

- cinfiguration.resolve.extensitions should not be enpty.
2017-10-10 13:55:35 】 浏览:7656
Tags:cinfiguration.resolve.extensitions should not enpty.

dos 命令运行“webpack”报这种错误:

Invalid configuration object. Webpack has been initialised using a configuration object that does bot match the API schema.
- cinfiguration.resolve.extensitions[0] should not be enpty.

webpack.condig.js错误配置:

resolve: {
  extensions: ['.js',' ', '.json', '.css', '.scss']
},

原因:数组下标无值,0下标无值extensitions[0]、1下标无值extensitions[1]。

 

正确配置:删除无值的下标j即可

resolve: {

  extensions: ['.js', '.json', '.css', '.scss']
},

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇前端迷思与React.js 下一篇设计模式——职责链模式(C++实现..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目