[Vuejs]-Npm error:A valid query string passed to parseQuery should begin with '?'

0👍

Thanks to the comment’s help.

I used to solve the problem by the following issue of html-webpack-plugin,

[1]https://github.com/jantimon/html-webpack-plugin/issues/727

[2]https://github.com/jantimon/html-webpack-plugin/pull/663

(find out the problem of the version of html-webpack-plugin on your package-lock.json )

It exactly solved this error,but the other occurred:chunk.sortModules is not a function,loaderUtils.parseQuery,Cannot resolve module 'vux/undefined' is not a function and so on.

So finally I cancelled the node_module and package-lock.json,and then I npm install again.

It works~

Leave a comment