- cinfiguration.resolve.extensitions should not be enpty.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了- cinfiguration.resolve.extensitions should not be 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‘]
},

 

以上是关于- cinfiguration.resolve.extensitions should not be enpty.的主要内容,如果未能解决你的问题,请参考以下文章