Skip to content

Getting the following errors using useLiveQuery #95

@nodkrot

Description

@nodkrot
  const res = useLiveQuery((query) =>
    query
      .from({ dataCollection })
      // .keyBy(`@id`)
      .select(`@id`, `@name`, "@amount", "@date")
  );

Error: compiled-query.ts:54 Uncaught TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))
at compiled-query.ts:54:30
at Array.reduce ()
at OutputOperator. (compiled-query.ts:54:16)
at OutputOperator.run (output.ts:35:15)
at D2.step (d2.ts:78:10)
at D2.run (d2.ts:88:12)

  const res = useLiveQuery((query) =>
    query
      .from({ dataCollection })
      .keyBy(`@id`)
      .select(`@id`, `@name`, "@amount", "@date")
  );

Error: key-by.ts:54 Uncaught TypeError: Do not know how to serialize a BigInt
at JSON.stringify ()
at key-by.ts:54:23
at keying.ts:16:42
at multiset.ts:33:50
at Array.map ()
at MultiSet.map (multiset.ts:33:19)
at MapOperator.inner (map.ts:26:23)
at MapOperator.run (base.ts:16:44)
at D2.step (d2.ts:78:10)
at D2.run (d2.ts:88:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions