You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It relies on a CLI tool, which is a subdependency, so it's not in node_modules/.bin and thus not in the path. This would have started happening after #286
To Reproduce
The vanilla template is enought:
pnpx wxt@latest init repro --pm pnpm --template vue
cd repro
pnpm i
pnpm build --analyze
Here's the full output
$ pnpm build --analyze
> [email protected] build /Users/aklinker1/Development/local/wxt-analysis-2
> wxt build "--analyze"
WXT 0.14.4 7:12:59 AM
ℹ Building chrome-mv3 for production with Vite 5.0.11 7:12:59 AM
✔ Built extension in 360 ms 7:13:00 AM
├─ .output/chrome-mv3/manifest.json 336 B
├─ .output/chrome-mv3/popup.html 462 B
├─ .output/chrome-mv3/background.js 10.36 kB
├─ .output/chrome-mv3/chunks/popup-H2Bt7_1p.js 3.05 kB
├─ .output/chrome-mv3/assets/popup-vfBPF4pa.css 1.24 kB
├─ .output/chrome-mv3/icon/128.png 3.07 kB
├─ .output/chrome-mv3/icon/16.png 559 B
├─ .output/chrome-mv3/icon/32.png 916 B
├─ .output/chrome-mv3/icon/48.png 1.33 kB
├─ .output/chrome-mv3/icon/96.png 2.37 kB
├─ .output/chrome-mv3/stats-0.json 5.65 kB
├─ .output/chrome-mv3/stats-1.json 4.22 kB
└─ .output/chrome-mv3/wxt.svg 1.07 kB
Σ Total size: 34.63 kB
✖ Command failed after 551 ms 7:13:00 AM
[7:13:00 AM] ERROR Command failed with ENOENT: rollup-plugin-visualizer /Users/aklinker1/Development/local/wxt-analysis-2/.output/chrome-mv3/stats-0.json /Users/aklinker1/Development/local/wxt-analysis-2/.output/chrome-mv3/stats-1.json --template treemap
spawn rollup-plugin-visualizer ENOENT
spawn rollup-plugin-visualizer ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ELIFECYCLE Command failed with exit code 1.
For now, I'm just gonna add node_modules/wxt/node_modules/.bin to the path. See btd/rollup-plugin-visualizer#188 for converting this into a regular JS function call (instead of spawning a child process).
Describe the bug
It relies on a CLI tool, which is a subdependency, so it's not in
node_modules/.bin
and thus not in the path. This would have started happening after #286To Reproduce
The vanilla template is enought:
pnpx wxt@latest init repro --pm pnpm --template vue cd repro pnpm i pnpm build --analyze
Here's the full output
Expected behavior
Build analysis to finish sucessfully.
Screenshots
N/A
Environment
Additional context
Follow up to #355
The text was updated successfully, but these errors were encountered: