stackblitz / webcontainer-core

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

Failure to support nx monorepos. #1581

Open dominicmule opened 2 weeks ago

dominicmule commented 2 weeks ago

Describe the bug

when I create a Nx monorepo, it fails to run and throws this error: "The Nx CLI could not find or load the native binary for your supported platform (linux-x64). This likely means that optional dependencies were not installed correctly, or your system is missing some system dependencies."

When I try to install nx globally, I get this error: "npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator."

Link to the blitz that caused the error

https://stackblitz.com/edit/sb1-uqxtvz?file=.vscode%2Fsettings.json

Steps to reproduce

  1. Create a nx monorepo project.
  2. Run it, it will throw the first error.
  3. Install nx globally using yarn global add @nrwl/cli , it will throw the second error.

Expected behavior

It should run effeciently without blocking me from installing nx globally.

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 67288657,
  "usedJSHeapSize": 63688377,
  "jsHeapSizeLimit": 2160066560
}
Hash = 34c588ed

Additional context

No response