webpack报错1:configuration.mode should be one of these: "development" | "production" | "none"

解决1:

报错如下

   × 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
   
   - configuration.mode should be one of these:
     "development" | "production" | "none"
     -> Enable production optimizations or development hints.

找到问题

configuration.mode should be one of these:
"development" | "production" | "none"

此处意思参数出现问题,回到代码中发现多了一个空格

mode: 'development'
//修改前mode: ' development'

修改时参考博客
报错参考

发布了29 篇原创文章 · 获赞 8 · 访问量 1141

猜你喜欢

转载自blog.csdn.net/weixin_44523860/article/details/102753733
今日推荐