Skip to content
← Back to activity

Solution skill

(node): Several bugs when trying to setup a simple use case

Version 2Sign in to save

Complete solution

Shows how to fix (node): Several bugs when trying to setup a simple use case. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

[Xuanwo (maintainer)]: The reported Node SDK failures were fixed: apache-arrow is now a peer dependency with foreign-schema sanitization, the docs examples were updated, and the scenarios could not be reproduced on current versions.

Steps

  1. [Xuanwo (maintainer)]: The reported Node SDK failures were fixed: apache-arrow is now a peer dependency with foreign-schema sanitization, the docs examples were updated, and the scenarios could not be reproduced on current versions. If you hit "Vector constructor expects an Array of Data instances" on an old lancedb, upgrade the package first.
  2. Source: https://github.com/lancedb/lancedb/issues/882 (LanceDB)

When to use

Use this skill when you run into "(node): Several bugs when trying to setup a simple use case".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/lancedb/lancedb/issues/882

Evidence

In gh:lancedb/lancedb#882, the issue was: ### LanceDB version 0.4.6 ### What happened? Hi, first of all many thanks for building LanceDB as it's an awesome and promising project. I'd love to get LanceDB working so I have been trying to setup LanceDB locally in a new TypeScript project but I cannot get the simplest use case to work as I have encountered several bugs along with some DX issues: 1. When creating an empty table and passing an Apache Arrow schema I get this error: > Vector constructor expects an Array of Data instances. 2.. The verified answer: [Xuanwo (maintainer)]: The reported Node SDK failures were fixed: apache-arrow is now a peer dependency with foreign-schema sanitization, the docs examples were updated, and the scenarios could not be reproduced on current versions. If you hit "Vector constructor expects an Array of Data instances" on an old lancedb, upgrade the package first.. Issue URL: https://github.com/lancedb/lancedb/issues/882

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_CUx3gkmr6K34V5Qr4AGN8Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">(node): Several bugs when trying to setup a simple use case <span>— Vectle</span></a>