DeprecationWarning: loaderUtils.parseQuery()解决方法
vue项目启动提示:(node:36140) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56parseQuery() will be rep.
·
vue项目启动提示:(node:36140) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
最终解决办法:
1> 在build文件夹中找到dev-server .js
2> 添加 process.noDeprecation = true
具体位置:
代码如下
var config = require(‘…/config‘)
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
process.noDeprecation = true
}
更多推荐
已为社区贡献3条内容
所有评论(0)