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

Cannot set property threads of #<Object> which has only a getter #255

Closed
arthurkirkosa opened this issue Jul 21, 2016 · 5 comments
Closed

Comments

@arthurkirkosa
Copy link

I keep getting this error and can't seam to find a way to resolve it

I've uploaded my whole (tiny) project to dropbox if anyone cares to have a stab at it.

I've tried everything I know.

Most of the files are from the chat example;

@ktsn
Copy link
Member

ktsn commented Jul 21, 2016

Quick fix is to modify the store definition to following.

export default new Vuex.Store({
  state,
  getters: Object.assign({}, getters),
  actions,
  mutations,
});

laravel-elixir-webpack-official uses webpack 2.0 internally and it exports modules as readonly objects.
In addition, Vuex will mutate the root getters object, then the error is happened.

This seems to be fixed by #253

@arthurkirkosa
Copy link
Author

I've ended up having the getters object in store.js; as soon as the new code is tagged, I'll try it and let you know if it fixes my issue

@doabit
Copy link

doabit commented Aug 4, 2016

Have the same issue with vuex next branch and webpack 2.

@ktsn
Copy link
Member

ktsn commented Aug 6, 2016

It's fixed on 2.0.0-rc.4

@ktsn ktsn closed this as completed Aug 6, 2016
@arthurkirkosa
Copy link
Author

arthurkirkosa commented Aug 9, 2016

I can confirm that 2.0.0-rc.4 fixed the issue

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

3 participants