Wappler Version : 3.2.1
Operating System : OS X 10.15.6
Expected behavior
What do you think should happen?
After adding the Local Storage component, web page should open without errors.
What actually happens?
I see the error in the console and page (frontend and editor) is blank, as soon as I remove the component, everything works fine.
Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at localManager.js:28
at Array.reduce (<anonymous>)
at n.getData (localManager.js:26)
at n.render (localManager.js:22)
at n.constructor (BaseComponent.js:20)
at n (appConnect.js:488)
at n.e.hasOwnProperty.e.constructor (appConnect.js:521)
at new n (appConnect.js:488)
at n.$addChild (BaseComponent.js:213)
Sorry for responding this late. The error message tells that it got an error when it tried to parse the data stored in the session/local storage. It is stored as a json serialized string and the is being parsed back when reading from it. Seems that in your case it contains invalid json.
I should probably do some better error handling. If you still have this error then please check the content of the local/session storage using devtools. In Chrome you find that under the Application tab. Alternative you can just type localStorage or sessionStorage in the console to inspect them. The data used by App Connect are stored under keys prefixed with dmxState-.
Have updated the plugin, it should now not throw an error, instead it now shows a warning in the console when it can’t parse the value stored in the storage and skip it.