Skip to content

es modules issue #69

Open
Open
@oliviertassinari

Description

@oliviertassinari

I have noticed the following issue in my console:

TypeError: Promise is not a constructor
at PouchDB$3.eval (pouch-utils.js:51)
at PouchDB$3.eval [as dump] (pouch-utils.js:31)
at eval (API.js:125)
at

var Promise = require('pouchdb-promise');

Applying the following diff in pouchdb-replication-stream/lib/pouch-utils.js fix my issue:

'use strict';

var Promise = require('pouchdb-promise');
+
+Promise = Promise.default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions