wxt prepare command stuck
Describe the bug
Dear Team,
I'm writing to that I found an issue, when my project size is getting larger, wxt prepare command stuck when I install any npm dependency.
I'm using
- Turborepo
- pnpm
Reproduction
N/A
Steps to reproduce
N/A
System Info
System:
OS: Windows 11 10.0.22621
CPU: (4) x64 Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
Memory: 1.43 GB / 7.92 GB
Binaries:
Node: 22.18.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 10.14.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (138.0.3351.83)
Internet Explorer: 11.0.22621.3527
Used Package Manager
pnpm
Validations
- [x] Read the Contributing Guidelines.
- [x] Read the docs.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [x] The provided reproduction is a minimal reproducible example of the bug.
same here:
apps/ext postinstall$ wxt prepare
│ WXT 0.20.7
│ ℹ Generating types...
│ ✔ Finished in 683 ms
└─ Running...
System:
OS: Linux 6.14 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 3.16 GB / 15.41 GB
Container: Yes
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.16.0 - ~/.asdf/installs/nodejs/22.16.0/bin/node
npm: 10.9.2 - ~/.asdf/plugins/nodejs/shims/npm
pnpm: 10.12.1 - ~/.asdf/installs/pnpm/10.12.1/bin/pnpm
bun: 1.2.19 - ~/.bun/bin/bun
Watchman: 2025.08.04.00 - /home/linuxbrew/.linuxbrew/bin/watchman
Languages:
Bash: 5.2.21 - /usr/bin/bash
Java: 21.0.8 - /usr/bin/javac
Perl: 5.38.2 - /usr/bin/perl
Python3: 3.13.5 - /home/linuxbrew/.linuxbrew/bin/python3
Ruby: 3.2.3 - /usr/bin/ruby
Rust: 1.87.0 - /home/imbios/.cargo/bin/rustc
Browsers:
Chrome: 139.0.7258.66
npmPackages:
@supabase/supabase-js: ^2.53.1 => 2.53.1
@tailwindcss/vite: ^4.1.11 => 4.1.11
@total-typescript/ts-reset: ^0.6.1 => 0.6.1
@types/react: ^19.1.9 => 19.1.9
@types/react-dom: ^19.1.7 => 19.1.7
@vitejs/plugin-react-swc: ^4.0.0 => 4.0.0
@wxt-dev/module-react: ^1.1.3 => 1.1.3
clsx: ^2.1.1 => 2.1.1
react: ^19.1.1 => 19.1.1
react-dom: ^19.1.1 => 19.1.1
tailwind-merge: ^3.3.1 => 3.3.1
wxt: ^0.19.29 => 0.19.29
UPDATE 1: It's no longer stuck, but I don't know the cause yet.
My svelte template project just hangs indefinitely on ℹ Generating types...:
$ wxt prepare
WXT 0.20.8
ℹ Generating types...
warn: bext's postinstall cost you 30.9s
warn: bext's postinstall cost you 1m965ms
warn: bext's postinstall cost you 1m30.9s
warn: bext's postinstall cost you 2m965.1ms
...etc
envinfo
System:
OS: macOS 15.4.1
CPU: (12) arm64 Apple M2 Max
Memory: 2.62 GB / 96.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.5.0 - ~/.volta/tools/image/node/24.5.0/bin/node
npm: 11.5.1 - ~/.volta/tools/image/node/24.5.0/bin/npm
pnpm: 10.14.0 - ~/.volta/bin/pnpm
bun: 1.2.20 - ~/.bun/bin/bun
Languages:
Bash: 3.2.57 - /bin/bash
Go: 1.24.4 - /opt/homebrew/bin/go
Erlang: 28.0 - /opt/homebrew/bin/erl
Perl: 5.34.1 - /usr/bin/perl
Protoc: 29.3 - /opt/homebrew/bin/protoc
Python3: 3.13.5 - /opt/homebrew/bin/python3
Ruby: 2.6.10 - /usr/bin/ruby
Rust: 1.81.0 - /Users/bew/.cargo/bin/rustc
Browsers:
Brave Browser: 139.1.81.131
Chrome: 133.0.6943.142
Safari: 18.4
Safari Technology Preview: 18.4
I am still seeing this issue with WXT 0.20.11. I am also using pnpm in a Turbo monorepo.
yarn with turbo got same issue today. prepare just stuck
The problem on my side seems happen when there is a supabase createClient directly being called in utils. which result a infinitely loading of this prepare cli. e.g.
// utils/supabase
// this line result an infinitely loading
export supabase = createClient();
What i did are just do not Immediately Invoke the createClient. The problem seems like the prepare cli issue. It will try to execute the createClient instead of just building some type which result a loading.
I have the same issue - supabase's createClient called at the top level causes it stuck, when something in background script uses supabase.
For me the issue happens when supabase's createClient is imported in background AND when background has additional named export in addition to export default.