Skip to content

sandpack-react with vite: Uncaught ReferenceError: process is not defined #519

@jerrywu001

Description

@jerrywu001

Bug report

Packages affected

  • sandpack-react

Description of the problem

When using T, I get the following error:
Uncaught ReferenceError: process is not defined

image

What were you doing when the problem occurred?

Although it can be solved by the [vite -> define] configuration, I don't think it is perfect

see: https://stackblitz.com/edit/vitejs-vite-axyaxx?file=src%2FApp.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNew issues that needs consideration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions