Node-NTRIP/rtcm

ReferenceError: TextDecoder is not defined

wael-mos opened this issue · 2 comments

The decode-encode.js file is using TextDecoder and TextEncoder without import and may provoc crash on few devices.
To fix it i simply add the import TextDecoder = require("util").TextDecoder;

SO: Ubuntu 20.04.2 LTS
Node version: v10.19.0
Npm: 6.14.4

using newer node helps also.