triniwiz / nativescript-plugins

Apache License 2.0
80 stars 50 forks source link

Error in extending CouchBase class @triniwiz/nativescript-couchbase #121

Open mamaly12 opened 2 years ago

mamaly12 commented 2 years ago

Hi,

I have a class that extends CouchBase:

import {CouchBase} from '@triniwiz/nativescript-couchbase';
import { Query} from '@triniwiz/nativescript-couchbase/common';

declare let com: any;
export class CouchbaseLite extends CouchBase
{
}
...

when I try to instantiate my parent class:

this.database = new CouchbaseLite("hello");

I will face this error:

JS: ERROR TypeError: Class constructor CouchBase cannot be invoked without 'new'

I would be more than happy if you could give me some advice.

Thank you