Thursday, 27 April 2017

Polymer/node.js newbie - how do I connect to Couchbase?

This is my first time developing an app without using Java and I need to connect to Couchbase in my Polymer app. I'm currently following the guide in the couchbase website. The guide seems to be very straightforward and easy to understand but I'm encountering errors such as

Uncaught Error: Module name "binding" has not been loaded yet for context: _. Use require([])
http://requirejs.org/docs/errors.html#notloaded
    at makeError (require.js:168)
    at Object.localRequire [as require] (require.js:1436)
    at requirejs (require.js:1797)
    at couchbase.js:3

I think it wont work since I'm working on a Polymer project. Or I have to do more configuration that the Couchbase db didnt specify.

I have npm and bower installed. I've already installed (I think) requirejs if that matters at all. I've already done bower install requirejs and npm install couchbase. I can see both directories on my project but I just don't know how to reference them properly...



via Miguel Portugal

No comments:

Post a Comment