Skip to content

Installed via VP, the pi coding agent with packages can't be used. #2220

Description

@xsj284

Describe the bug

Installed via VP, the pi coding agent with packages can't be used.

Reproduction

https://github.com/xsj284/vp-bug-pi-agent

Steps to reproduce

$ vp add -g @earendil-works/pi-coding-agent
$ pi install npm:@vigolium/piolium
Error: Failed to load extension "/home/xsj284/.pi/agent/npm/node_modules/@vigolium/piolium/extensions/piolium/index.ts": Failed to load extension: Cannot find module '/home/xsj284/.vite-plus/packages/@earendil-works/pi-coding-agent' imported from /home/xsj284/.vite-plus/packages/@earendil-works/pi-coding-agent#2753e02c-9319-456f-bc0f-23d6d7b6fba5/lib/node_modules/@earendil-works/pi-coding-agent/node_modules/jiti/lib/jiti-static.mjs
Hint: Start without extensions using "pi -ne".

System Info

$ vp env current
VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.18.0
  Source   lts

Tool Paths:
  node  /home/xsj284/.vite-plus/js_runtime/node/24.18.0/bin/node
  npm   /home/xsj284/.vite-plus/js_runtime/node/24.18.0/bin/npm
  npx   /home/xsj284/.vite-plus/js_runtime/node/24.18.0/bin/npx

vp --version
VITE+ - The Unified Toolchain for the Web

vp v0.2.5

Local vite-plus:
  vite-plus  Not found

Tools:
  vite             Not found
  rolldown         Not found
  vitest           Not found
  oxfmt            Not found
  oxlint           Not found
  oxlint-tsgolint  Not found
  tsdown           Not found

Environment:
  Package manager  Not found
  Node.js          v24.18.0

Used Package Manager

bun

Logs

Validations

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions