Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A valid query string passed to parseQuery should begin with '?' #14

Open
mogaoyong opened this issue Jul 19, 2017 · 1 comment
Open

Comments

@mogaoyong
Copy link

mogaoyong commented Jul 19, 2017

按照文档,在main.js中加入如下代码

import Icon from 'vue-svg-icon/Icon.vue';
Vue.component('icon', Icon);

执行npm run dev命令,控制台打印出如下信息,该如何解决呢?

warning in ./src/svg/14.svg

Module build failed: Error: A valid query string passed to parseQuery should begin with '?'
at Object.parseQuery (D:\vue\vux-simple\node_modules_loader-utils@1.1.0@loader-utils\lib\parseQuery.js:13:9)
at Object.module.exports (D:\vue\vux-simple\node_modules\xml-loader\index.js:12:29)

@ ./src/svg .//xml-loader! ^./.*.svg$
@ ./
/_babel-loader@6.4.1@babel-loader/lib!.//_vux-loader@1.1.2@vux-loader/src/script-loader.js!.//_vue-loader@11.3.4@vue-loa
der/lib/selector.js?type=script&index=0!.//vue-svg-icon/Icon.vue
@ ./
/vue-svg-icon/Icon.vue
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js

@btshj
Copy link

btshj commented May 14, 2018

请问,你解决了吗?我也遇到了这个情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants