jedisct1 / libsodium.js

libsodium compiled to Webassembly and pure JavaScript, with convenient wrappers.
Other
980 stars 141 forks source link

Regression: package no longer works in react-native starting from libsodium-wrappers@0.7.7 #249

Closed tasn closed 1 year ago

tasn commented 4 years ago

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.

AlexMiniApps commented 4 years ago

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

dractw commented 4 years ago

Same issue here, downgrade is a key

leonelvsc commented 4 years ago

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 commented 3 years ago

Any update on this ?

nikgraf commented 1 year ago

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.