Skip to content

process not defined in browser #27

Description

@ggascoigne

When running this in Vite, process is not defined (which is correct, it's a server side convention provided by node and unset in browsers) causing debug-level to crash.

The issue is coming from chalk:supports-color which doesn't support running in the browser. This is followed by references to process.argv and tty.isatty.

Am I missing some config, or has some downstream upgrade caused this to stop working in the browser?

using: "debug-level": "3.2.1",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions