Skip to content

Cannot find module '@workflow/world-postgres' #689

@prananta

Description

@prananta

I followed the instructions in https://useworkflow.dev/docs/deploying/world/postgres-world. I'm using Next.js 16.1.1. Deployed to Vercel (Node 24). got this error when I called the end point:

2025-12-26 09:20:40.395 [info] Starting Postgres World...
2025-12-26 09:20:40.395 [info] Failed to prepare server Error: An error occurred while loading instrumentation hook: Cannot find module '@workflow/world-postgres'
Require stack:
- /var/task/index.js
    at <unknown> (../../opt/rust/nodejs.js:2:13529)
    at Module.dn (../../opt/rust/nodejs.js:2:13907)
    at Je.e.<computed>.ze._load (../../opt/rust/nodejs.js:2:13499) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [Array]
}
2025-12-26 09:20:40.395 [info] Failed to prepare server Error: An error occurred while loading instrumentation hook: Cannot find module '@workflow/world-postgres'
Require stack:
- /var/task/index.js
    at <unknown> (../../opt/rust/nodejs.js:2:13529)
    at Module.dn (../../opt/rust/nodejs.js:2:13907)
    at Je.e.<computed>.ze._load (../../opt/rust/nodejs.js:2:13499) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [Array]
}
2025-12-26 09:20:40.400 [error] Error: An error occurred while loading instrumentation hook: Cannot find module '@workflow/world-postgres'
Require stack:
- /var/task/index.js
    at <unknown> (../../opt/rust/nodejs.js:2:13529)
    at Module.dn (../../opt/rust/nodejs.js:2:13907)
    at Je.e.<computed>.ze._load (../../opt/rust/nodejs.js:2:13499) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [Array]
}

Same thing with Redis world. The only way I can use workflow is with Vercel World in Pro plan. Hobby plan doesn't work which is annoying.

The packages:

npm list
[email protected] 
├── @emnapi/[email protected] extraneous
├── @emnapi/[email protected] extraneous
├── @emnapi/[email protected] extraneous
├── @napi-rs/[email protected] extraneous
├── @tailwindcss/[email protected]
├── @tybys/[email protected] extraneous
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @workflow/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions