0

this is the error I getting

Im attaching the error snapshot with this code.

my persistedState.client.js looks like this:

import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
  createPersistedState()(store)
}
kissu
  • 40,416
  • 14
  • 65
  • 133
Abhishek
  • 53
  • 7
  • Does this answer your question? [Vuejs Error: The client-side rendered virtual DOM tree is not matching server-rendered](https://stackoverflow.com/questions/47862591/vuejs-error-the-client-side-rendered-virtual-dom-tree-is-not-matching-server-re) – kissu Sep 28 '21 at 07:45
  • The error is not related to `vuex-persistedstate` anyhow here. It's a DOM issue as linked in the comment above. On top of it, your issue is located near `toLowerCase`, this is the code snippet you need to provide us actually. – kissu Sep 28 '21 at 07:47
  • but I dont know where can I found the code – Abhishek Sep 28 '21 at 08:46
  • Okay, if you don't have any other code written by yourself, this is probably related to the package itself. Did you checked this answer? https://github.com/robinvdvleuten/vuex-persistedstate/issues/54#issuecomment-329963248 Maybe this github issue too: https://github.com/robinvdvleuten/vuex-persistedstate/issues/130 Or even this one: https://github.com/robinvdvleuten/vuex-persistedstate/issues/151 ? – kissu Sep 28 '21 at 10:13
  • Thanks for your time but I checked all these and Im not using cookies – Abhishek Sep 28 '21 at 11:34
  • ? this is not related to cookies. The issue is elsewhere. – kissu Sep 28 '21 at 11:40
  • any help possible? – Abhishek Sep 29 '21 at 03:26

1 Answers1

0

I'm using "vuex-persistedstate": "^2.5.4" in "nuxt": "^2.15.8" and this code works for me

import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
  window.onNuxtReady(() => {
    createPersistedState()(store)
  })
}
kissu
  • 40,416
  • 14
  • 65
  • 133
Dakween
  • 1
  • 3