Skip to content

createHash().digest('base64url') is not supported in stackblitz environment #115

@pi0

Description

@pi0

Environment

stackblitz

Reproduction

https://stackblitz.com/edit/stackblitz-starters-9jrcqphf?file=index.mjs

Describe the bug

Reported from nuxt/cli#753, it seems stackblitz node:crypto does not support createHash().digest('base64url').

I have to check better if it is a general limitation with older Node.js versions or specific to stackblitz, if it is for old versions (and no major perf diff), we can use digest + Buffer

Update: Seems supported in both Node.js v20, and Node.js v18. (stackblitz/webcontainer issue?)

Image

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions