`pouchdb` is great, but seems to have some maintenance issues. I'm using this issue to keep track of them. - https://github.com/pouchdb/pouchdb/issues/6449 (5 years old!) - Probably due to https://github.com/pouchdb/pouchdb/issues/7675 (marked as stale and `wontfix`ed) - https://github.com/pouchdb/pouchdb/issues/8440 (supposedly fixed but pending a release) - https://github.com/pouchdb/pouchdb/issues/8266 , which is indicative of two issues: - A dependency tries to import `"events"` as if running in `node`: https://github.com/pouchdb/pouchdb/issues/8186 - Workaround: Install `"events"` from `npm`, which can transparently be used to polyfill `node`'s behaviour without any other changes. - Some dependency depends on `window.global` being set. 🙄 - Workaround: Set a `js` banner of `globalThis.global = globalThis` and hope this doesn't break clients of `timer-db`.
pouchdbis great, but seems to have some maintenance issues. I'm using this issue to keep track of them.wontfixed)"events"as if running innode: import EE from 'events' in browser is not possible apache/pouchdb#8186"events"fromnpm, which can transparently be used to polyfillnode's behaviour without any other changes.window.globalbeing set. 🙄jsbanner ofglobalThis.global = globalThisand hope this doesn't break clients oftimer-db.