#11559`make frontend-dev` fails during build under WSL2
Issue Details
Author
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
-
Following the Contributing guide, I set up a development environment under WSL2 (Ubuntu), installing nvm, Node.js, and Yarn(by
corepack enable
). -
After creating a Python venv in the lib directory, I ran
make all-devel
at the project root, which completed successfully. -
However, ran
make frontend-dev
resulted in the following error:
cd frontend/ ; yarn workspaces foreach --all --exclude [@streamlit](https://github.com/streamlit)/app --exclude [@streamlit](https://github.com/streamlit)/lib --topological run build Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn workspaces foreach [--from #0] [-A,--all] [-R,--recursive] [-W,--worktree] [-v,--verbose] [-p,--parallel] [-i,--interlaced] [-j,--jobs #0] [-t,--topological] [--topological-dev] [--include #0] [--exclude #0] [--no-private] [--since] [-n,--dry-run] <commandName> ... make: *** [Makefile:282: frontend-dependencies] Error 1
Reproducible Code Example
(.venv) user@host:/work/streamlit$ make frontend-dev
Debug info
- Streamlit version: 1.45.1
- Python version: 3.10.12
- Operating System: Ubuntu 22.04.5 (WSL2)
- Node.js: 24.1.0
- nvm: 0.40.3
- yarn: 4.5.3