Siempre aparece el mismo error cuando quiero crear una base de datos local con pouchdb
intenté usar pouchdb y pouchdb-browser,
también diferentes opciones de importación como
import * as PouchDB from 'pouchdb';
import PouchDB from ''pouchdb';
import PouchDB from ''pouchdb-browser';
const PouchDB = require('pouchdb');
nada funciona.
tan pronto comenzaré mi base de datos con:
const db = new PouchDB('exampleDB');
Recibo este error a continuación, por favor ayúdenme :-(
wrapper.mjs?8f1a:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'v1') at eval (wrapper.mjs?8f1a:2:1) at Module../node_modules/uuid/wrapper.mjs (vendor.js:3233:1) at __webpack_require__ (app.js:173:33) at fn (app.js:426:21) at eval (index-browser.es.js:7:62) at Module../node_modules/pouchdb/lib/index-browser.es.js (vendor.js:2731:1) at __webpack_require__ (app.js:173:33) at fn (app.js:426:21) at setup (TodoList.vue?0d3f:55:1) at callWithErrorHandling (runtime-core.esm-bundler.js?f781:155:1) Promise.then (async) nextTick @ runtime-core.esm-bundler.js?f781:246 eval @ QResizeObserver.js?3980:65 callWithErrorHandling @ runtime-core.esm-bundler.js?f781:155 callWithAsyncErrorHandling @ runtime-core.esm-bundler.js?f781:164 hook.__weh.hook.__weh @ runtime-core.esm-bundler.js?f781:2667 flushPostFlushCbs @ runtime-core.esm-bundler.js?f781:356 flushJobs @ runtime-core.esm-bundler.js?f781:401 Promise.then (async) queueFlush @ runtime-core.esm-bundler.js?f781:285 queueJob @ runtime-core.esm-bundler.js?f781:279 eval @ runtime-core.esm-bundler.js?f781:5139 triggerEffects @ reactivity.esm-bundler.js?a27c:359 ...