I have reproduced the issue on the latest CLI version.
Yes, I am on the latest version
I have searched existing posts and this report is not a duplicate.
Yes, this isn’t a duplicate
In which of these areas are you experiencing a problem?
App
Expected behavior
Running shopify app dev should idle near 0% CPU after startup.
Actual behavior
The shopify app dev CLI process (node …/bin/shopify app dev) consumes about 200% CPU continuously after startup, for the entire lifetime of the command. All child processes it spawns (vite, artisan serve, etc.) sit near 0% CPU. The CPU is consumed by the CLI process itself.
My analysis: @shopify/cli 4.9.4 bundles chokidar 3.6.0 into its dist/ but does not ship the fsevents native module it loads via try { require("fsevents") }, so on macOS chokidar silently falls back to fs.watchFile()-based polling. Build dirs like extensions/*/target (~89k-total ~29k cargo-generated files in my app, only node_modules/.git are ignored in packages/app/…/app-events/file-watcher.ts) then get stat-polled ~289k times/second, saturating all 4 libuv fs threads.
Fix hints:
- Ship fsevents: add it to the
externallist in packages/cli/bin/bundle.js
and to @shopify/cli’s optionalDependencies. - Or ignore
**/target/**(or the extension .gitignore) in the file watcher
so build output isn’t watched.
Reproduction steps
- On macOS (Apple Silicon), install @shopify/cli globally: npm i -g @shopify/cli
- Use an app containing Shopify Functions built with Rust: after a build the
extensions//target/ directories contain ~5,000–13,000 files each. - Run
shopify app devand observe the shopify process in Activity Monitor
orps -axo time,%cpu,command: it shows ~200%+ CPU continuously while
the child dev-server processes idle at ~0%.
Verbose output
(Output contains unrelated error fetching app logs)
Relevant output, I can provide the full output if necessary:
2026-10-21T07:53:02.277Z: Building function discount-ignoring-fees...
2026-10-21T07:53:02.280Z: Building function cart-transformer...
2026-10-21T07:53:02.285Z: Building function cart-validation...
2026-10-21T07:53:02.611Z: Reading the content of file at extensions/theme-extension/assets/…
2026-10-21T07:53:02.609Z: Reading the content of file at extensions/discount-ui/dist/discount-ui.js...
2026-10-21T07:53:04.154Z: Sync-reading the content of file at extensions/cart-validation/target/wasm32-unknown-unknown/release/cart-validation.optimized.wasm...
2026-10-21T07:53:04.305Z: Sync-reading the content of file at extensions/discount-ignoring-fees/target/wasm32-unknown-unknown/release/order-discount-ignoring-fees.optimized.wasm...
2026-10-21T07:53:04.511Z: Sync-reading the content of file at extensions/cart-transformer/target/wasm32-unknown-unknown/release/cart-transformer.optimized.wasm...
2026-10-21T07:53:04.769Z: Applying trampoline to the wasm binary with command: …/shopify-function-trampoline-2.0.1 -i …/extensions/…/target/wasm32-unknown-unknown/release/*.optimized.wasm -o …
2026-10-21T07:53:04.958Z: Converting WASM from extensions/<function>/target/wasm32-unknown-unknown/release/*.optimized.wasm to base64 in .shopify/dev-bundle/<uuid>/dist/index.wasm
2026-10-21T07:53:05.154Z: Import scan for "pos-fee-tile": 1 entries, 15 files, 2ms (cache: 15 parsed, 45 stats)
2026-10-21T07:53:05.156Z: Import scan for "discount-ui": 1 entries, 11 files, 1ms (cache: 26 parsed, 82 stats)
2026-10-21T07:53:05.158Z: File watcher started with 153 paths
2026-10-21T07:53:05.158Z: Function extensions detected, starting logs polling
2026-10-21T07:53:06.896Z: Sync-reading the content of file at .shopify/dev-bundle.br...
✅ Ready, watching for changes in your app │ Access scopes auto-granted: …
Operating system
macOS 15.7.9, Apple Silicon (arm64)
CLI version
4.9.4
Shell
zsh 5.9
Nodejs version
v22.23.2
What language and version are you using in your application?
PHP 8.4 (Laravel 12), TypeScript/React (Vite 8), Rust (Shopify Functions)