MODULE_NOT_FOUND
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.6k
- Forks
- 251
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 34
Description
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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