Started to get "self._initReady is not a function" after migrating to react19/nextjs16
Author: vicmosinCreated Nov 19, 2025Updated Nov 19, 2025
Version: 1.10.0
Nothing was changed in calls, i.e.
localforage.getItem<ResultCookie>(cookieKey)
.then((value) => {
const result = (value as ResultCookie)?.result
if (results && Object.keys(results).length > 0) {
if (result && !result.submitted) {
result.results = results
localforage.setItem<ResultCookie>(cookieKey, {...value, result: result})
.catch((error) => {
logError(error, {
operation: 'localforage.setItem',
location: 'persist-results',
surveyCode: _props.code,
});
});
}
}
})
.catch((error) => {
logError(error, {
operation: 'localforage.getItem',
location: 'persist-results',
surveyCode: _props.code,
});
});Produces error in dev/local environment:
self._initReady is not a function
_fullyReady localforage.js:747
promise localforage.js:929
getItem localforage.js:928
useEffect [code].tsx:68
React 4Source: localForage/localForage