Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put documents ERROR URI not defined #2

Open
arturalkaim opened this issue Jul 26, 2016 · 1 comment
Open

Put documents ERROR URI not defined #2

arturalkaim opened this issue Jul 26, 2016 · 1 comment

Comments

@arturalkaim
Copy link

Hi,
I'm trying to use this plugin with an ionic 2 app.

The following code

import cblDB = require('../../services/couchbase/cbl');
const db = new cblDB('nameOfDB');
var obj = {
    _id: "test1",
        title: "test"
    };

db.put(obj).then(
        (value) => console.log("DB PUT " + value),
    (err) => console.log("DB PUT ERROR " + err)
);

is returning

"DB PUT ERROR ReferenceError: URI is not defined"

What am I doing wrong?

Thanks

@jfspencer
Copy link
Owner

@arturalkaim sorry for the delayed response, the typescript wrapper depends on the global availability of URI.js it also depends on an A+ compliant promise library, I have tested against bluebird, and also depends on lodash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants