Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VerveLight opened this issue Sep 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@VerveLight
Copy link

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 VerveLight added the bug Something isn't working label Sep 21, 2024
@VerveLight
Copy link
Author

VerveLight commented Sep 21, 2024

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 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant