8000 Error when initializing db · Issue #105 · Ivshti/linvodb3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error when initializing db #105
Open
@cutterbl

Description

@cutterbl

So I followed the docs

import LinvoDB from 'linvodb3';
import Level from 'level-js'; // had to this way due to my build process

LinvoDB.defaults.store = { db: Level };
LinvoDB.dbPath = dirname(remote.getGlobal('sharedStorage').dbPath);
const db = new LinvoDB('songlibrary', {}, {});

And what happens is I get a js error out of LevelUP when it's trying to setup the readStream

Uncaught TypeError: Cannot read property 'bind' of undefined
at new ReadStream (index.js:16)
at LevelUP../node_modules/linvodb3/node_modules/levelup/lib/levelup.js.LevelUP.readStream.LevelUP.createReadStream (levelup.js:274)
at Function../node_modules/linvodb3/lib/model.js.Model.buildIndexes (model.js:119)
at bagpipe.js:157

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0