rubystarashe / nuxt-vuex-localstorage

MIT License
161 stars 18 forks source link

VM2968:1 Uncaught (in promise) SyntaxError: Unexpected token � in JSON at position 0 #29

Closed nelsonlarocca closed 3 years ago

nelsonlarocca commented 3 years ago

hi there

starting using Nuxt 2.15.x I started getting this:

Uncaught (in promise) SyntaxError: Unexpected token � in JSON at position 0 at JSON.parse () at bindStorage (index.js:39) at index.js:92 at Array.forEach () at _callee$ (index.js:91) at tryCatch (runtime.js:63) at Generator.invoke [as _invoke] (runtime.js:293) at Generator.next (runtime.js:118) at asyncGeneratorStep (_index.mjs:3) at _next (_index.mjs:25)

Thanks I'll try to debug the code. Note: on all upgraded projects happens the same

nelsonlarocca commented 3 years ago

the issue disappeared with nuxt updates

studiolathe commented 2 years ago

@rubystarashe @nelsonlarocca I am facing the same issue with Nuxt 2.15.8.

Uncaught (in promise) SyntaxError: Unexpected token j in JSON at position 0

Any ideas on how to debug?

Thank you!