Following https://github.com/dcmjs-org/dcmjs/commit/bfd6693e7491b17a2e615393eb5b80af3a78de9b nodejs now crashes with undefined use of [TextEncoder](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder). According to [this post](https://stackoverflow.com/questions/69187442/const-utf8encoder-new-textencoder-in-node-js) it is fixed with the node util package like this: ``` const util = require('util'); this.encoder = new util.TextEncoder("utf-8"); ``` And indeed this works when I hack it into the build. It needs to be integrated so that the code will work on both node and browser out of the box.