stable-diffusion-react-nextjs-mui-pwa icon indicating copy to clipboard operation
stable-diffusion-react-nextjs-mui-pwa copied to clipboard

indexedDB is not defined

Open coreaidev opened this issue 7 months ago • 1 comments

When running the pwa, I get the following error:

yarn run v1.22.22                                                                                                 
$ next dev                                                                                                        
   ▲ Next.js 14.0.1                                                                                               
   - Local:        http://localhost:3000                                                                          
   - Experiments (use at your own risk):                                                                          
     · swcPlugins                                                                                                 
                                                                                                                  
 ○ (pwa) PWA support is disabled.                                                                                 
 ○ (pwa) PWA support is disabled.                                                                                 
 ✓ Ready in 7s                                                                                                    
 ○ Compiling /inpaint ...                                                                                         
Browserslist: caniuse-lite is outdated. Please run:                                                               
  npx browserslist@latest --update-db                                                                             
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating             
 ✓ Compiled /inpaint in 15.5s (2037 modules)                                                                      
ssr http.js                                                                                                       
I18nProvider rendered `null`. A call to `i18n.activate` needs to happen in order for translations to be activated 
and for the I18nProvider to render.This is not an error but an informational message logged only in development.  
 ○ Compiling /api/gongoPoll ...                                                                                   
 ✓ Compiled /api/gongoPoll in 10.5s (760 modules)                                                                 
Error in subscribe({"name":"accounts","updatedAt":{}}):                                                           
[Error: Set process.env.MONGODB_RELAY_PASSWORD first]                                                             
[next-auth][warn][NEXTAUTH_URL]                                                                                   
https://next-auth.js.org/warnings#nextauth_url
[next-auth][warn][NO_SECRET]  
https://next-auth.js.org/warnings#no_secret
 ○ Compiling /api/kiri/route ...
 ✓ Compiled /api/kiri/route in 2.9s (352 modules)
Gongo uses `debug` for logging.  Set localStorage.debug = 'gongo,gongo:*'
ReferenceError: indexedDB is not defined
    at openDB (webpack-internal:///(rsc)/./node_modules/gongo-client/node_modules/idb/build/esm/index.js:18:21)
    at GongoIDB.eval (webpack-internal:///(rsc)/./node_modules/gongo-client/lib/browser/idb.js:158:50)
    at Generator.next (<anonymous>)
    at eval (webpack-internal:///(rsc)/./node_modules/gongo-client/lib/browser/idb.js:26:71)
    at new Promise (<anonymous>)
    at __awaiter (webpack-internal:///(rsc)/./node_modules/gongo-client/lib/browser/idb.js:8:12)
    at GongoIDB.open (webpack-internal:///(rsc)/./node_modules/gongo-client/lib/browser/idb.js:153:16)
    at Timeout.eval [as _onTimeout] (webpack-internal:///(rsc)/./node_modules/gongo-client/lib/browser/idb.js:150:
55)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) 

coreaidev avatar May 10 '25 01:05 coreaidev