Skip to content

Can't access Web Crypto API from within remix's dev server #6913 #6915

Closed as not planned
@tavoyne

Description

@tavoyne

What version of Remix are you using?

1.19.0

Are all your remix dependencies & dev-dependencies using the same version?

  • Yes

Steps to Reproduce

Just console.log(globalThis.crypto) from server code or open https://stackblitz.com/edit/remix-run-remix-fbmasu?file=app%2Fentry.server.tsx and check the console.

Expected Behavior

If using Node >=15.0.0, globalThis.crypto or just crypto should return a Crypto object. It already works natively in Node (Node documentation and MDN) just like in all other environments, so why does remix removes it from the global object?

Actual Behavior

It returns undefined.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions