Closed nigel-dewar closed 6 years ago
Hey @nigel-dewar, I just tired this on a project and it worked fine. There are no TS definitions for rethinkdbdash so it's probably some sort of TS config, or maybe adding an "any" somewhere. If you can recreate the issues on some github project I don't mind trying it out to help.
You are right sorry. Adding an any solved it. My bad.
Hi There,
I found the module wont import when using es6. For instance, this does not work
import * as r from 'rethinkdbdash';
or import rethinkdbdash from 'rethinkdbdash';
throws an error. Im using typescript, targeting es 6.
have also tried this
but it throws this error
this of course still works fine const r = require('rethinkdbdash')({db: 'CRMv3', silent: true});
Any help would be greatly appreciated, as I do really love your driver. Its really nice to work with.
cheers
Nige