dos 命令運行“webpack”報這種錯誤: Invalid configuration object. Webpack has been initialised using a configuration object that does bot match the API schema.- c ...
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']
},