question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ottoman vs couchbase version confusion

See original GitHub issue

In my package.json I’m using:

  "dependencies": {
    "express": "*",
    "couchbase": "*",
    "body-parser": "*",
    "ottoman":"*"
  },

But app complains about mismatched versions or something similar? Is this truly a version mismatch or something else deeper in my app (bikeshop-cb)?

throw new Error('The couchbase module version used by the application'
      ^

Error: The couchbase module version used by the application does not match Ottomans.  Please explicitly pass the application couchbase module using `StoreAdapter.Couchbase`.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
waffledonkeycommented, Jul 1, 2017

~Try force installing couchbase@2.2.5; npm install --save couchbase@2.2.5. They bumped package.json to 2.3.x, but the test in cbstoreadapter.js is apparently incorrect under the newer version.~ . uninstall couchbase and ottoman, then install ottoman and it should automatically install a compatible version of couchbase. order matters. if you install couchbase first you’ll get a 2.3.x version of couchbase at the top of node_modules and then installing ottoman will get a 2.2.x version in ottoman/node_modules and things get all confused. if you’re like me you got express working and then you went to add connect-couchbase as the session store which doesn’t install couchbase (curiously an optional dependency). So you installed couchbase separately (2.3.x) and then you started modeling some data with ottoman and got a second copy of couchbase (2.2.x) and now things are a mess.

Also, that looks nothing like the dependencies section of the ottoman I have (also 1.0.4)

  "dependencies": {
    "bluebird": "^3.4.1",
    "couchbase": "~2.2.2",
    "jsonpath": "~0.2.2",
    "uuid": "~2.0.1"
  },
0reactions
hashbangdev1commented, Jun 22, 2017

Hi @brett19

App’s package.json:

“dependencies”: { “body-parser”: “^1.14.2”, “couchbase”: “~2.3.0”, “express”: “^4.13.3”, “ottoman”: “^1.0.4” }

Ottoman’s package.json:

“dependencies”: { “bluebird”: “^3.4.1”, “couchbase”: “~2.3.0”, “jsonpath”: “~0.2.2”, “lodash”: “^4.15.0”, “lodash-deep”: “^2.0.0”, “uuid”: “~2.0.1” }

and the error:

throw new Error('The couchbase module version used by the application'

Error: The couchbase module version used by the application does not match Ottomans. Please explicitly pass the application couchbase module using StoreAdapter.Couchbase.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The couchbase module version used by the application ...
Hi,. Bear with me, all a bit new to node and ottoman/couchbase. I get the same error when working through example apps. eg....
Read more >
Introduction to Ottoman With Couchbase
Ottoman is an Object Data Modeler (ODM) for Couchbase's Node.js SDK providing JSON schema and validation for a NoSQL database.
Read more >
Migrating to SDK 3 API | Couchbase Docs
We have identified this as a potential source of confusion and as a result split it up in two methods that simplify usage...
Read more >
Migrating to SDK API 3 | Couchbase Docs
We have identified this as a potential source of confusion and as a result split it up in two methods that simplify usage...
Read more >
Sub-Document Operations with the C SDK | Couchbase Docs
Sub-document operations can be used to efficiently access parts of documents. Sub-document operations may be quicker and more network-efficient than ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found