rivet-dev / rivet-dev/agentos

MODULE_NOT_FOUND

Open
#1,438 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.6k
Forks
251
Avg merge
2d 15h
Merged PRs (30d)
34

Description

Image
 npx tsx server.ts                                
node:internal/modules/cjs/loader:1493
  const err = new Error(`Cannot find module '${request}'`);
              ^

Error: Cannot find module 'xxxxxx/agent-os/node_modules/.pnpm/@rivetkit+engine-runner@2.2.1/node_modules/@rivetkit/engine-runner-protocol/dist/index.cjs'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1493:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1482:9)
    at resolveExports (node:internal/modules/cjs/loader:685:14)
    at Module._findPath (node:internal/modules/cjs/loader:752:31)
    at node:internal/modules/cjs/loader:1441:27
    at nextResolveSimple (xxxxxx/agent-os/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/register-D46fvsV_.cjs:4:1004)
    at xxxxxx/agent-os/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/register-D46fvsV_.cjs:3:2630
    at xxxxxx/agent-os/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/register-D46fvsV_.cjs:3:1542
    at resolveTsPaths (xxxxxx/agent-os/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/register-D46fvsV_.cjs:4:760)
    at xxxxxx/agent-os/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/register-D46fvsV_.cjs:4:1102 {
  code: 'MODULE_NOT_FOUND',
  path: 'xxxxxx/agent-os/node_modules/.pnpm/@rivetkit+engine-runner@2.2.1/node_modules/@rivetkit/engine-runner-protocol'
}

Node.js v24.14.1

"dependencies": {
	"@rivet-dev/agent-os-common": "^0.0.260331072558",
	"@rivet-dev/agent-os-pi": "^0.1.1",
	"rivetkit": "^2.2.1",
	"tsx": "^4.21.0"
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported npx tsx server.ts command and the dependency entries for @rivet-dev/agent-os-common, @rivet-dev/agent-os-pi, rivetkit, and tsx. Investigate why @rivetkit/engine-runner-protocol/dist/index.cjs cannot be resolved under pnpm, then verify that running npx tsx server.ts no longer produces MODULE_NOT_FOUND.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.