cardano-multiplatform-lib icon indicating copy to clipboard operation
cardano-multiplatform-lib copied to clipboard

react-native asm.js Value undefined out of range for undefined options property undefined

Open renanvalentin opened this issue 3 years ago • 0 comments

Is ASM.JS version supported on react-native? Importing any module gives the following error using Hermes or JSC engine:

import {Address} from '@dcspark/cardano-multiplatform-lib-asmjs/cardano_multiplatform_lib.js';

console.log('Address', Address);
error: node_modules/@dcspark/cardano-multiplatform-lib-asmjs/cardano_multiplatform_lib.asm.js: Value undefined out of range for undefined options property undefined

I can confirm it works perfectly in a browser environment: https://codesandbox.io/s/festive-shadow-9putrt?file=/src/index.js

Many thanks!

renanvalentin avatar Dec 02 '22 17:12 renanvalentin