Open qq781548819 opened 5 years ago
Dexie is dependant on the IndexedDB interface that is a W3C browser interface. IndexedDBShim could possibly be used on nodejs to emulate the same interface on node, using sqlite3 as storage. Not sure the status of that setup right now. Maybe more info here: https://github.com/axemclion/IndexedDBShim/issues/325.
Perhaps not ideal but for nuxt/next/ssr a workaround/solution could be
const form = () => import('...')
if(process.client)
statementSee also this blog https://deltener.com/blog/common-problems-with-the-nuxt-client-only-component/ for more information.
in nuxt.config.js file
in /db/index.js