Get alway the same error when I want to create a localDB with pouchdb
tried to use pouchdb and pouchdb-browser,
also different import options like
import * as PouchDB from 'pouchdb';
import PouchDB from ''pouchdb';
import PouchDB from ''pouchdb-browser';
const PouchDB = require('pouchdb');
nothing works.
as soon I will start my DB with:
const db = new PouchDB('exampleDB');
I get this error below, please help me :-(
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
...