apache / apache/pouchdb

defaults.name does not work

Open
#8,606 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue
Not a big deal, really.

According to docs, I would expect the following code to work:

```js
const Foo = PouchDB.defaults({
name: 'foo'
})

const foo = new Foo()
```

but it throws with `Error: Missing/invalid DB name`.

### Info
- Environment: Node (using `pouchdb-node` package)
- Platform: Windows

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.