vaticle / typedb-docs

TypeDB Documentation
25 stars 72 forks source link

Error: Cannot find module 'typedb-client/api/TypeDBSession' #539

Closed chris-aeviator closed 2 years ago

chris-aeviator commented 2 years ago

In the docs, you mention to install typedb client as the only requirement

npm install typedb-client

however, when running your examples for the nodejs client I run into

Error: Cannot find module 'typedb-client/api/TypeDBSession'
flyingsilverfin commented 2 years ago

to answer the immediate question, the import is now located in typedb-client/api/connection/TypeDBSession

which page is the out of date docs on?

chris-aeviator commented 2 years ago

https://docs.vaticle.com/docs/client-api/nodejs

flyingsilverfin commented 2 years ago

Will be fixed in next release, is already checked in

alexjpwalker commented 2 years ago

In the latest typedb-client==2.2.0, you can now import TypeDBSession directly from typedb-client

Docs have been updated to reflect this