Skip to content

[Bug]: pi-fff fails to load because of ' Cannot find module '@ff-labs/fff-bun'' #689

Description

@lucidfrontier45

Which fff frontend?

Other / multiple

has logs

No response

Description

OS: Debian 13.6 (The problem only happens in Linux, in Windows it doesn't)
Pi: 0.80.10
@ff-labs/pi-fff: 0.10.0

I have installed pi with Bun and @ff-labs/pi-fff with pi install.
Since fff 0.10.0, the pi extention no longer works in Linux, showing. After launching pi the following message was shown.

Error: FFF init failed: ResolveMessage: Cannot find module '@ff-labs/fff-bun' from '/home/du/.pi/agent/npm/node_modules/@ff-labs/pi-fff/src/sdk.ts'

I found in $HOME/.pi/agent/npm/bun.lock that @ff-labs/fff-node was listed but @ff-labs/fff-bun wasn't.
Current workaround is running bun add @ff-labs/fff-bun inside $HOME/.pi/agent/npm .
It seems pi extension installer couldn't correctly identify if the runtime is node or bun.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriaged

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions