Error: driver not defined
Closed this issue · 8 comments
Although bigchaindb-orm uses bgchaindb-driver you cannot call driver unless you import the bigchaindb-driver library itself. This is not mentioned in the usage notes for js-driver-orm.
Is there any chance you could expose the the driver object so that bigchaindb-driver does not have to be imported separately?
@moringaman I'll check if I can expose driver safely
Thanks
I also think it's worth pointing out that I get a 'only one instance of babel-polyfill permitted' error when I try to import bigchaindb-driver to use with the orm driver. (albeit using the vueJs framework, I haven't tried any other frameworks or even just vanilla javascript yet, but I thought you might want to know)
@moringaman The babel-polyfill problem is being solved shortly with interledgerjs/five-bells-condition#75
Ok Great, well I look forward to being able to use this library soon.
driver is still not exposed. Could you have a look at this?
Whats the latest on this, as it still does not seem to be usable by following the docs 4 months of waiting recent changes but still not working can anyone enlighten me???
It works for me @moringaman
have a look at my repo: https://github.com/DalderupMaurice/TU-BigchainDB-ORM-final
It's fully working with the newest update (BDB 2.0 with Tendermint)
Driver is now exposed in bdbOrm.driver
Example:
const aliceKeypair = new bdbOrm.driver.Ed25519Keypair()