cirql icon indicating copy to clipboard operation
cirql copied to clipboard

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

Open VerveLight opened this issue 1 year ago • 1 comments

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

> [email protected] 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.

[email protected] C:\dev\vervelight\auguron ├── @types/[email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]

VerveLight avatar Sep 21 '24 07:09 VerveLight

This is my connection, i've tried with both a host name, and IP addresss. And both with http and https.

Built with this as reference: https://cirql.starlane.studio/docs/guide/install

import { Cirql } from 'cirql';

const cirql = new Cirql();

await cirql.handle.connect('http://192.168.100.112:8888/');
await cirql.handle.signin({
    namespace: 'auguron',
    database: 'augurdb',
    username: '{censored username}',
    password: '{censored password}',
});

export { cirql };

VerveLight avatar Sep 21 '24 07:09 VerveLight