Error when going through Semantic Search Example

I am going through the semantic search Typescript example and I get this error

response.body.getReader is not a function

That seems to be related to the xenova library. Anyone knows how to solve it?
Thanks