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

vuex2..0 mapActions #377

Closed
lijiancheng opened this issue Feb 28, 2017 · 1 comment
Closed

vuex2..0 mapActions #377

lijiancheng opened this issue Feb 28, 2017 · 1 comment

Comments

@lijiancheng
Copy link

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 webpack/loader-utils#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:

  • babel-runtime/helpers/extends in .//.npminstall/babel-loader/6.3.2/babel-loader/lib!.//.npminstall/vue-loader/11.1.0/vue-loader/lib/selector.js?type=script&index=0!./src/components/Hello.vue

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

Listening at http://localhost:8080


@posva
Copy link
Member

posva commented Feb 28, 2017

Update vue-loader

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