vue2.0开发时webpack打包出错

在代码中引入自定义组件时出现如下错误

(node:7092) DeprecationWarning: loaderUtils.parseQuery() received a non-string v
alue which can be problematic, see https://github.com/webpack/loader-utils/issue
s/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

请问各位大神如何解决啊?

阅读 5.2k
2 个回答

我刚遇到这个问题,把config里面的options去掉,然后直接写成:

loader:"xxx-loader?name=[name].[ext]&xxx=xxx"

就不会报错了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题