Skip to content

Attempting to setup with a connection to SurrealDB. TypeError: Vt is not a constructor. #16

Description

@VerveLight

Describe the bug
Attempting to connect to surrealDB, hosted on a headless machine on a simple local network. Surrealist connects fine, but i did have to download the latest version, as the old version wasn't able to connect.

Example

(base) PS C:\dev\vervelight\auguron> npm run dev

> auguron-augur-object-network@1.0.0 dev
> tsx src/index.ts

file:///C:/dev/vervelight/auguron/node_modules/cirql/dist/cirql.js:2313
    const n = new Vt(this.url);
              ^

TypeError: Vt is not a constructor
    at Qe.open (file:///C:/dev/vervelight/auguron/node_modules/cirql/dist/cirql.js:2313:15)
    at ze.connect (file:///C:/dev/vervelight/auguron/node_modules/cirql/dist/cirql.js:2453:27)
    at <anonymous> (C:\dev\vervelight\auguron\src\augurdb\connection\cursor.ts:5:20)
    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.17.0

Expected behavior
A clear and concise description of what you expected to happen.

Environment:

  • OS: Windows Dev, SurrealDB hosted on Docker on Rocky Linux (centOS) machine on the network.

auguron-augur-object-network@1.0.0 C:\dev\vervelight\auguron
├── @types/express@4.17.21
├── cirql@1.0.1
├── express@4.21.0
├── surrealdb@1.0.0
├── tsx@4.19.1
├── typescript@5.6.2
└── zod@3.23.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions