Skip to content

JSON Parse error: Unexpected identifier "object" #7

Description

@khanakia

I am just foolowing the quickstart tutorial here https://github.com/upstash/query?tab=readme-ov-file#quickstart

and getting below error when querying the document but it created the document correct as you can see in below screenshot

    const upstashEmployees = await usersByOrganization.match({
      organization: 'Upstash',
    })
28 | var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29 | var __async = (__this, __arguments, generator) => {
30 |   return new Promise((resolve, reject) => {
31 |     var fulfilled = (value) => {
32 |       try {
33 |         step(generator.next(value));
               ^
SyntaxError: JSON Parse error: Unexpected identifier "object"
      at map (1:11)
      at fulfilled (//node_modules/.pnpm/@upstash+query@0.0.2/node_modules/@upstash/query/dist/index.js:33:24)

Bun v1.2.2 (macOS arm64)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions