VueJS + Couchbase


After testing the connection of my VueJS project with Couchbase Sync and PouchDB, everything worked fine.

So I wanted to integrate Couchbase into a VueJS project, inspired by this tutorial:

Couchbase installs fine with the “npm install --save” command;
I then import the module like this
“var couchbase = require(‘couchbase’)”
or like that
import { Cluster } from ‘couchbase’
but when I run my project I get the error message:

Uncaught TypeError: Cannot read properties of undefined (reading ‘modules’) → bindings.js

Couchbase 7.1
Couchbase Sync 3
Couchbase Node.js Client 4.1.1

Best regard