apache / apache/pouchdb

Dynamic require of "events" is not supported

Open
#8,968 4 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
PouchDB cannot be declared when I use it under vue3+vite+ts, columns such as const db = new PouchDB("test"); An error will occur:

Dynamic require of "events" is not supported.

I have installed the npm package events, do you support it in such an environment
### Info
- Environment: (Node.js/browser/hybrid app/etc.)
- Vue3+vite+ts
- Platform: (Chrome/FF/Safari/Edge/iOS/Android/etc.)
- Chrome
- Adapter: (idb/indexeddb/memory/leveldb/etc.)
- Server: (CouchDB/Cloudant/PouchDB Server/etc.)
- CouchDB

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.