digitalbazaar / jsonld.js

A JSON-LD Processor and API implementation in JavaScript
https://json-ld.org/
Other
1.65k stars 195 forks source link

compact.js module issue in React Native #494

Open fowwest opened 1 year ago

fowwest commented 1 year ago

I integrated this library in my React Native app but the RN packager throws the following error when compiling the app bundle.

jsonld/lib/compact.js: Couldn't find a Program.

I tried with various node versions (v14, 16, etc.) as well as different jsonld package versions (2.0.2, 3.0.1, 5.2.0) but no luck.

Any help for fixing this issue would be much appreicated.

dmitrizagidulin commented 1 year ago

@fowwest - try using our fork, https://github.com/digitalcredentials/jsonld.js (we're using it in React Native)