Skip to content

MMM + SES: Uncaught exceptions (2) ethjs #20

Open
@leotm

Description

@leotm

Up-to-date follow-up to

reproducer

modules

  • node_modules/ethjs/node_modules/ethjs-query/lib/index.js
  • node_modules/ethjs/node_modules/ethjs-contract/lib/index.js

cause

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);

Screenshot 2023-05-26 at 13 13 46 2 uncaught exception: paused on promise rejection Caught: TypeError "Cannot read properties of undefined (reading 'PreferencesController')" node_modules/@babel/runtime/helpers/asyncToGenerator.js

3 (x4)

Screenshot 2023-05-26 at 13 22 32

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

Screenshot 2023-05-26 at 17 49 11

Simulator Screen Shot - iPhone 12 Pro - 2023-06-07 at 17 30 42

first seen in

  • MMM: RN 0.66.5 + SES 0.18.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions