Open
Description
Up-to-date follow-up to
reproducer
- feat: SES lockdown v0.18.8 (iOS JSC) MetaMask/metamask-mobile#6586 (without
lib
->src
patches)
modules
node_modules/ethjs/node_modules/ethjs-query/lib/index.js
node_modules/ethjs/node_modules/ethjs-contract/lib/index.js
cause
EngineService.initalizeEngine(store)
with SES/lockdown- details: https://github.com/MetaMask/metamask-mobile/pull/6586/files#diff-ad3df39fe8fe83c06807ba064c661c7b684f8c07455d73a922f4170d2eec4f4f
TypeError: Cannot assign to read only property 'constructor' of object '[object Object]'
Error: 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]'
TypeError: _$$_REQUIRE(...) is not a constructor
TypeError: Cannot read properties of undefined (reading 'tokenList')
SES_UNHANDLED_REJECTION:
causing 2 uncaught promise rejection exceptions
node_modules/ethjs/lib/index.js
1 uncaught exception
: Paused on promise rejection
Exception: TypeError “_$$_REQUIRE(...) is not a constructor”
var query = new EthQuery(cprovider, self.options.query);

3 (x4)

node_modules/metro-runtime/src/polyfills/require.js
function metroRequire(moduleId) { … }
modules processed pre/during SES repairing intrinsics

first seen in
- MMM: RN 0.66.5 + SES 0.18.4