Chaijs library throwing error on xk6

While running the chaijs library on the custom build xk6 binary
xk6-browser and xk6-kubernetes

While running the same code

getting an error.