Skip to content

Vite dev server fails to start in WebContainer #2145

Description

@catembraces

Describe the bug

Related issue: #2104

When I open a new StackBlitz React JavaScript project or any existing StackBlitz React JavaScript project I am seeing the following error in the screenshot.

It looks like an issue was open about a month ago for a similar error.

Image

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-syns6g9z?file=index.html&terminal=dev

Steps to reproduce

  1. Open Stackblitz
  2. Click New Project
  3. Click React JavaScript
  4. Open terminal - at this point the project is not running

Expected behavior

I expect to have the starter/boiler plate React JavaScript code to run automatically. I expect to see the UI open with the starter code.

Parity with Local

Screenshots

Image

Platform

Browser name  = Chrome
Full version  = 150.0.0.0
Major version = 150
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 119005620,
  "usedJSHeapSize": 99573200,
  "jsHeapSizeLimit": 4395630592
}
Hash = 87cf54cd

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions