stackblitz / webcontainer-core

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

CodeFlow upload broken in ChromeOS / Chromebooks / Android? #1092

Open FossPrime opened 1 year ago

FossPrime commented 1 year ago

Describe the bug

Attempting to upload a file in codeflow fails with a Cannot read properties of null (reading 'name') error message.

Exact same issue that used to happen in StackBlitz https://github.com/stackblitz/core/issues/1762

Link to the blitz that caused the error

https://pr.new/github.com/feathersjs/playground/tree/template-starter

Steps to reproduce

  1. Drag-N-Drop a javascript file from a local folder

Expected behavior

File upload complete.

Parity with Local

Screenshots

Screenshot 2023-06-02 00 49 42

Platform

Additional context

No response

Nemikolh commented 1 year ago

Hi @FossPrime ! Wow good catch!

It might be specific to ChromeOS. I tried on an Android phone with 8GB and it worked fine.

Maybe you ran into an out of memory error? How much RAM do you have?

Or maybe could you navigate to https://stackblitz.com/~/ and try to upload it there? Does it work?

(note: if you use that link that I provided the upload does not actually upload it anywhere in the cloud and you need to setup a remote git repo if you want to save your work later)

FossPrime commented 1 year ago

16GB of RAM, 2023 Framework Laptop.

Control + A has also stopped working. Similar to this old issue

It's very easy to run ChromeOS flex on an old macbook. 2012-2015 are rock solid.

Folders won't upload. Individual files will create after the error. They will never overwrite even after confirming. The IDE is in a very strange state...

Screenshot 2023-06-09 08 56 43 Screenshot 2023-06-09 08 53 07

This happened while uploading a single file named common.js

@Nemikolh Thank you!