Since v3.1.73 this can also happen if you compile without -sFETCH_SUPPORT_INDEXEDDB=0
-sFETCH_SUPPORT_INDEXEDDB=0
see the explanation here https://github.com/emscripten-core/emscripten/issues/23124