chat-ui: crypto.randomUUID is not a function

In getting this error in browser console:

TypeError: crypto.randomUUID is not a function
    addChildren addChildren.ts:25
    writeMessage +page.svelte:155
+page.svelte:320:11

Anyone having the same issue?

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Reactions: 1
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Confirmed that the secure context is the issue. It will work on localhost, on https, but not over http. If you use chrome you can make it work by enabling ‘Insecure origins treated as secure’ on the url to prove the point.

Maybe obvious to smart guys you mean… 🤣 I just did and it works again!

thanks a lot @nsarrazin 🔥