Skip to content

[Bug]: Global installation fails with ESM module resolution errors #79

@ProduktEntdecker

Description

@ProduktEntdecker

Bug Description

Description:
When installing @vibe-kit/grok-cli globally with Bun, the resulting grok command fails with Node.js module resolution errors. The package's imports lack .js extensions required by Node.js ESM specification.

Steps to Reproduce:

  1. Install: bun add -g @vibe-kit/grok-cli
  2. Run: grok --version
  3. Observe: ERR_MODULE_NOT_FOUND errors

Expected Behavior:
The grok command should work after global installation.

Actual Behavior:
Multiple module resolution failures prevent execution.

Workaround:
Create a wrapper script that explicitly uses Bun to run the package.

Suggested Fix:
Add .js extensions to all relative imports in the distributed code to ensure Node.js ESM compatibility.

Steps to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions