I use the latest NativeScript Sidekick and Preview for developing (vanilla, pure JS) apps, recently I installed Couchbase Lite Plugin https://market.nativescript.org/plugins/nativescript-couchbase
When I write var couchbaseModule = require("nativescript-couchbase");
in
the JS file of a page and if I try to open the page, this error message shows up
But if I remove var couchbaseModule = require("nativescript-couchbase");
the page loads without error.
Why this happens? How can I use and require couchbase plugin? What can I do to solve this problem?