Error: [vuex] do not mutate vuex store state outside mutation handlers #2154

Open
opened 3 months ago by andreymal · 4 comments

When editing some fields (including but not limited to: priority, date, progress, assignees) from the Kanban view (i.e. via task-detail-view-modal), the following error occurs:

Error: [vuex] do not mutate vuex store state outside mutation handlers.
    assert vuex.esm-bundler.js:83
    enableStrictMode vuex.esm-bundler.js:347
    // ...
    select multiselect.vue:294
    onClick multiselect.vue:47
    node_modules chunk-KQJ3BTR7.js:8799
    // ...
    node_modules chunk-KQJ3BTR7.js:1423
    // ...
    findLabel editLabels.vue:92
    // ...
    searchTimeout multiselect.vue:268
    setTimeout handler*search multiselect.vue:267
    // ...
    1 multiselect.vue:28

or:

Error: [vuex] do not mutate vuex store state outside mutation handlers.
    assert vuex.esm-bundler.js:83
    enableStrictMode vuex.esm-bundler.js:347
    // ...
    2 TaskDetailView.vue:44
    // ...
    updateData prioritySelect.vue:47
When editing some fields (including but not limited to: priority, date, progress, assignees) from the Kanban view (i.e. via `task-detail-view-modal`), the following error occurs: ``` Error: [vuex] do not mutate vuex store state outside mutation handlers. assert vuex.esm-bundler.js:83 enableStrictMode vuex.esm-bundler.js:347 // ... select multiselect.vue:294 onClick multiselect.vue:47 node_modules chunk-KQJ3BTR7.js:8799 // ... node_modules chunk-KQJ3BTR7.js:1423 // ... findLabel editLabels.vue:92 // ... searchTimeout multiselect.vue:268 setTimeout handler*search multiselect.vue:267 // ... 1 multiselect.vue:28 ``` or: ``` Error: [vuex] do not mutate vuex store state outside mutation handlers. assert vuex.esm-bundler.js:83 enableStrictMode vuex.esm-bundler.js:347 // ... 2 TaskDetailView.vue:44 // ... updateData prioritySelect.vue:47 ```
Collaborator

Can you reproduce this on https://try.vikunja.io ?
Which version are you running on?

Can you reproduce this on https://try.vikunja.io ? Which version are you running on?
Poster

@dpschen i use the git main branch with yarn serve

But your question made me check yarn build and I noticed that the compiled frontend does not have this error, hence try.vikunja.io does not have this error either.

Does it mean this is a bug somewhere inside the yarn serve implementation?

@dpschen i use the git main branch with `yarn serve` But your question made me check `yarn build` and I noticed that the compiled frontend does not have this error, hence `try.vikunja.io` does not have this error either. Does it mean this is a bug somewhere inside the `yarn serve` implementation?
Collaborator

When using build the error will not be logged. Sometimes there are errors that are minor, so we don't want to annoy the user. In development (aka yarn serve) we want to see every problem.

The vuex issues you are seeing are not minor though. That should never happen.
@konrad Do we have a central place where we track these?

When using build the error will not be logged. Sometimes there are errors that are minor, so we don't want to annoy the user. In development (aka `yarn serve`) we want to see every problem. The vuex issues you are seeing are not minor though. That should never happen. @konrad Do we have a central place where we track these?
dpschen added the
kind/bug
label 3 months ago
Owner

Do we have a central place where we track these?

I don't think we have a place for those yet. Maybe we should just open an issue? Or better yet, fix when they come up?

> Do we have a central place where we track these? I don't think we have a place for those yet. Maybe we should just open an issue? Or better yet, fix when they come up?
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/frontend#2154
Loading…
There is no content yet.