libsodium.js icon indicating copy to clipboard operation
libsodium.js copied to clipboard

Regression: package no longer works in react-native starting from [email protected]

Open tasn opened this issue 5 years ago • 4 comments

Hey,

It works great with libsodium-wrapper 0.7.6, though the moment I upgrade to 0.7.7 I get:

Error: Both wasm and asm failed to loadTypeError: undefined is not an object (evaluating 'I.asm.rc')

I've been fighting with this for hours now trying to figure out what was going on (as it was working in another project) until I decided to downgrade, which as I said, fixed it.

Please let me know if you need any more information.

tasn avatar Aug 10 '20 15:08 tasn

I have stuck with the same issue. The version 0.7.8 also has been checked.. and it also contains the issue.

AlexMiniApps avatar Aug 12 '20 16:08 AlexMiniApps

Same issue here, downgrade is a key

dractw avatar Aug 28 '20 12:08 dractw

Same here, but it also happens on older browser for example IE 11 or Chrome 49 or Firefox 52.9.

Downgrading to 0.7.6 fixes the problem.

We use the library for a custom end to end encryption protocol based on sealed boxes on multiple sites, users with older browsers and operating systems like Win.XP started to have this problem

leonelvsc avatar Oct 19 '20 02:10 leonelvsc

Any update on this ?

leonelvsc avatar Feb 20 '21 16:02 leonelvsc

We built https://github.com/serenity-kit/react-native-libsodium matching the libsodium-wrappers API and it works well for us (incl web support via react-native-web). That said so far it's only a subset of the API, but we are open to contributions.

nikgraf avatar Jul 31 '23 13:07 nikgraf