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'

修改时参考博客
报错参考


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 webpack中Development和Production模式的区分打包 解决非webpack下 Vue控制台提示You are running Vue in development mode. webpack区分developement和production打包 从零学脚手架(六)---production和development拆分 [one day one question] webpack 打包报错 Cannot assign to read only property 'exports' of object '#' webpack配置报错:invalid configuration object.webpack has been initialisted using a configuration objcet that does not match thie API schema 使用taro开发钉钉的E应用报错 You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://git WCF basicHttpBinding之Transport Security Mode, clientCredentialType="None" vue中有关.env;.env.development,.env.production的相关介绍 vue中有关.env;.env.development,.env.production的相关介绍
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM