vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

vuex2..0 mapActions #377

Closed lijiancheng closed 7 years ago

lijiancheng commented 7 years ago

when i use vuex2.0 -- mapActions

the code like this https://vuex.vuejs.org/zh-cn/actions.html

...mapActions([ 'increment' // 映射 this.increment() 为 this.$store.dispatch('increment') ]),

vue-cli return a error


node build/dev-server.js

(node:5264) 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.

ERROR Failed to compile with 1 errors 17:21:56

This dependency was not found in node_modules:

Did you forget to run npm install --save for it?

Listening at http://localhost:8080


posva commented 7 years ago

Update vue-loader