jbmusso / gremlin-javascript

JavaScript tools for graph processing in Node.js and the browser inspired by the Apache TinkerPop API
MIT License
214 stars 62 forks source link

Gremlin.createClient is not a function #114

Open tatsuya-takahashi opened 6 years ago

tatsuya-takahashi commented 6 years ago

I don't know why this error occured with below code.

const Gremlin = require("gremlin");
// Gremlin
const client = Gremlin.createClient(
    443,
    ...

Typescript 3.0.4 gremlin: 3.3.4

sjmamani commented 6 years ago

You have to use the gremlin version 2.7.0:

npm install gremlin@2.7.0

The function createCliente doesn't work with gremlin's new versions.

tatsuya-takahashi commented 6 years ago

@sjmamani thank you for your kindness, It works for me.