javascriptreactjsreact-nativereact-native-hermeshermes

ReferenceError: Property 'TextEncoder' doesn't exist


I'm using react native 0.72.4

I'm getting this error: Reference Error: Property 'Text Encoder' doesn't exist at multiple places in my app. I didn't use it explicitly but my npm packages like qr-code-svg uses this package.

I don't know what Text Encoder is or where it is used .. i don't know why all of it occurs suddenly.


Solution

  • They have fixed this issue with version 6.3.2

    Update to this version and everything should work fine.

    Ref:

    1. https://github.com/grgia/react-native-qrcode-svg/issues/199
    2. https://github.com/grgia/react-native-qrcode-svg/pull/200