Closed adamduren closed 2 years ago
I'm having the same issue but in my case the (window as any).global = window;
trick doesn't work either. Did you find a better fix?
i am encountering the same problem as above. And the hack (window as any).global = window;
is not.
I've added, window.global = window;
in head of my index.html and it worked.
I've added,
window.global = window;
in head of my index.html and it worked.
This worked for me, too! Thanks so much.
I've added,
window.global = window;
in head of my index.html and it worked.
Works, but it is very dirty solution. @dmorilha-twilio
Attempting to use
twilio-chat
in an Angular project with TypeScript. I've tried various methods of importing and they all result in this error when trying to instantiate the Client.Inspecting
tokenStorage.js
reveals the culprit two lines.Adding
(window as any).global = window;
is a workaround but one that should not be needed.I'm not sure if this is the correct place to file issues as the
twilio-chat
library does not seem to be open source and there isn't abugs
entry inpackage.json
.