Open febriarief opened 1 year ago
I have an issue with couchbase when running isRunning() command.
isRunning()
here's my code:
try { const couchbase = new CouchBase(environment.couchbaseDb), replicator = couchbase.createReplication(`ws://${environment.couchbaseUrl}/${environment.couchbaseDb}`, 'both') replicator.setContinuous(true) replicator.start() console.log('is couchbase running? ' + replicator.isRunning()) } catch(e) { console.log('Couchbase error: ', e) }
and here's the error response from console:
JS: Couchbase error: TypeError: Cannot read property 'BUSY' of undefined
my package.json:
"dependencies": { "@angular/animations": "14.2.8", "@angular/common": "14.2.8", "@angular/compiler": "14.2.8", "@angular/core": "14.2.8", "@angular/forms": "14.2.8", "@angular/http": "8.0.0-beta.10", "@angular/platform-browser": "14.2.8", "@angular/platform-browser-dynamic": "14.2.8", "@angular/router": "14.2.8", "@nativescript-community/drawingpad": "4.1.0", "@nativescript-community/geocoding": "3.1.0", "@nativescript-community/ui-image": "4.3.6", "@nativescript-community/ui-lottie": "1.0.0", "@nativescript-community/ui-material-bottom-navigation": "7.0.3", "@nativescript-community/ui-material-bottomsheet": "7.0.33", "@nativescript/angular": "14.2.6-alpha.0", "@nativescript/background-http": "5.0.2", "@nativescript/camera": "5.0.12", "@nativescript/core": "8.3.5", "@nativescript/directions": "2.0.1", "@nativescript/firebase": "11.1.3", "@nativescript/geolocation": "8.0.2", "@nativescript/local-notifications": "6.0.0", "@nativescript/theme": "3.0.2", "@nativescript/zip": "6.0.0", "@nstudio/nativescript-camera-plus": "4.1.0", "@nstudio/nativescript-checkbox": "2.0.4", "@triniwiz/nativescript-couchbase": "1.4.0", "@triniwiz/nativescript-image-zoom": "4.1.2", "@triniwiz/nativescript-toasty": "4.1.3", "blueimp-md5": "2.19.0", "nativescript-appavailability": "1.3.2", "nativescript-audio": "6.2.6", "nativescript-barcodescanner": "4.0.1", "nativescript-feedback": "2.0.0", "nativescript-phone": "3.0.3", "nativescript-ui-autocomplete": "7.0.2", "nativescript-ui-listview": "10.0.2", "reflect-metadata": "0.1.13", "rxjs": "7.5.5", "zone.js": "0.11.6" }, "devDependencies": { "@angular-devkit/build-angular": "14.2.7", "@angular/compiler-cli": "14.2.8", "@nativescript/android": "8.3.1", "@nativescript/types": "8.3.1", "@nativescript/webpack": "5.0.9", "@ngtools/webpack": "14.2.7", "typescript": "4.7.4" },
I have an issue with couchbase when running
isRunning()
command.here's my code:
and here's the error response from console:
my package.json: