Skip to content

Instantly share code, notes, and snippets.

@leotm
Created December 20, 2023 11:18
Show Gist options
  • Save leotm/0b2fd9409472a20b5eee24c834f83dcf to your computer and use it in GitHub Desktop.
Save leotm/0b2fd9409472a20b5eee24c834f83dcf to your computer and use it in GitHub Desktop.
2 errors stemming from redux-persist
- `redux-persist/lib/persistReducer.js` (`Promise.then`)...
  - ...`babel-runtime/node_modules/regenerator-runtime/runtime.js`: `GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;` - `TypeError: Cannot assign to read only property 'constructor' of object '[object Object]'` missing stacktrace
  - ...`metro-runtime/src/polyfills/require.js`: `throw e` (multiple)
  - ...`ethjs/lib/index.js`: `var query = new EthQuery(cprovider, self.options.query);`: `TypeError: _$$_REQUIRE(...) is not a constructor` (multiple)
  - ...`metro-runtime/src/polyfills/require.js`: `Requiring module "node_modules/ethjs/node_modules/ethjs-query/lib/index.js", which threw an exception - TypeError: Cannot assign to read only property 'constructor' of object '[object Object]'` (multiple)
- `redux-persist/lib/createPersistoid.js`...`metamask-mobile/app/store/index.js`: `TypeError: Cannot read properties of undefined (reading 'tokenList')` (multiple)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment