Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypto module not available in unsecured contexts #1166

Open
1 task
moshie opened this issue Dec 23, 2024 · 3 comments
Open
1 task

Crypto module not available in unsecured contexts #1166

moshie opened this issue Dec 23, 2024 · 3 comments

Comments

@moshie
Copy link

moshie commented Dec 23, 2024

What version of million are you using?

1.0.14

Are you using an SSR adapter? If so, which one?

NextJS

What package manager are you using?

pnpm

What operating system are you using?

Mac

What browser are you using?

Arc, Chromium

Describe the Bug

When booting my application in localhost I have an error in the console:

TypeError: crypto.randomUUID is not a function

you cannot use crypto.randomUUID in insecure contexts I recommend using the uuid package instead.

What's the expected result?

Million uses uuid instead of the web crypto module.

Link to Minimal Reproducible Example

...

Participation

  • I am willing to submit a pull request for this issue.
Copy link

Thanks for opening this issue! A maintainer will review it soon.

@somin18501
Copy link

Facing the same issue. Is there any workaround available for this?

@Bi8boR
Copy link

Bi8boR commented Mar 27, 2025

same issue. maybe remove crypto or use alternative library?

I found a temporary workaround on stackoverflow

https://stackoverflow.com/a/78397011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants