Thanks to visit codestin.com
Credit goes to github.com

Skip to content

'Uncaught SyntaxError: Unexpected end of JSON input' upon installing Colada #59

@redfox05

Description

@redfox05

Issue

After following the install instructions to add Colada to our project, running the web application results in two JSON parse errors, as shown below:

VM290:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at colada-plugin.esm-browser.js:2985:1

VM292:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at saveMessage (content-script.js:3:58)

Steps to reproduce

  1. Add Pinia to the project, and start setting up reactive stores.
  2. No issues so far.
  3. Follow instructions at https://colada.dev/#install to add Colada.
  4. Load the app in browser (Chrome 117.0.5938.62).
  5. Check Dev Console. Issues displayed as detailed above.

Steps tried so far:

At first, I thought it was linked to the Pinia store code, and maybe there was an issue there, but I went through the code and commented out all references and imports for the reactive stores. So now all that remains is the init code for Pinia and Colada (the app.use etc).

Versions:

vue: 3.3.4
pinia: 2.1.6
colada-plugin: 0.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions