stackblitz / webcontainer-core

Dev environments. In your web app.
https://webcontainers.io
MIT License
3.91k stars 167 forks source link

My Project is not starting / serving after creating repository #1284

Open Meenalsolanki220397 opened 10 months ago

Meenalsolanki220397 commented 10 months ago

Describe the bug

React server script is not working.

Screenshot 2024-01-01 at 5 49 17 PM

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/Meenalsolanki220397/React-Insert-Text-in-document

Steps to reproduce

  1. Converted fork project to repository.
  2. Cleared cache and installed dependencies.
  3. Tried serving project but scripts failed.

Expected behavior

The project should serve and react scripts should work as expected.

Parity with Local

Screenshots

No response

Platform

Version = 1.84.0
Hash = a5b1ce2088a8c48a3bfda4a131ef20e00b36d9eb
WebContainer = a2aabdd9

Browser name  = Chrome
Full version  = 120.0.0.0
Major version = 120
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 126618961,
  "usedJSHeapSize": 121435305,
  "jsHeapSizeLimit": 4294705152
}

Additional context

No response

Nemikolh commented 10 months ago

Hi @Meenalsolanki220397! :wave: Thanks a lot for the report! :pray:

I have tried to reproduce this issue by using the React starter, convert it to a repository, clear the cache and install dependencies but everything works here.

In particular, in your case I noticed that some of the files and folders are not in the correct location:

Those folders are expected by react-scripts, as you can see by the error you have in your screenshot.

I suspected that this was a bug with our code that creates the repository but I couldn't reproduce it here with a fresh starter.

If you keep running into this issue, do you think you could share a screencast or a https://jam.dev/ ?