Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run biome: < must be followed by a word #1279

Open
1 task done
tony19 opened this issue Dec 25, 2023 · 1 comment
Open
1 task done

Cannot run biome: < must be followed by a word #1279

tony19 opened this issue Dec 25, 2023 · 1 comment
Labels

Comments

@tony19
Copy link

tony19 commented Dec 25, 2023

Describe the bug

Trying to run @biomejs/biome in StackBlitz causes this error:

/home/projects/github-ogy9eg/node_modules/@biomejs/cli-linux-x64/biome: line 1: < must be followed by a word

Link to the blitz that caused the error

https://stackblitz.com/edit/github-ogy9eg?file=.stackblitzrc

Steps to reproduce

  1. Open StackBlitz repro.

  2. Observe the error in the terminal:

    /home/projects/github-ogy9eg/node_modules/@biomejs/cli-linux-x64/biome: line 1: < must be followed by a word
    

Expected behavior

biome runs successfully

Parity with Local

Screenshots

No response

Platform

  • OS: macOS Sonoma
  • Browser: Chrome
  • Version: 120.0.6099.129 (Official Build) (arm64)

Additional context

related biomejs/biome#1341

@Nemikolh
Copy link
Member

Nemikolh commented Jan 4, 2024

Hi @tony19 ! 👋 Thanks for opening this issue!

We would love to get @biomejs/biome working on StackBlitz! ❤️

We have started experimenting with modifying process.arch to be set to wasm32 (See initial discussion in #1236). The idea would be that it would allow maintainers of a package, so biome in this instance, to create a version of their package that targets WebContainer and gets picked up automatically as it works today for MacOS / Linux / Windows.

So in this instance, a @biomejs/cli-linux-wasm32 package would have to provide a WASM implementation (that can use node-wasi) and specify in its package.json:

  "cpu": [
    "wasm32"
  ]

Then end users of @biomejs/biome would be able to enjoy it on StackBlitz. 🎉

Now with that said, we're not there yet. We'll keep you posted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants