deploying went wrong "Error: Cannot find module './pnpm.cjs'"

9 months ago

i got a big issue when deploying my express server app using Nx and at first it was working fine but in my last push i got an error and even after going back on my changes i get the same error, here is the error log:
node:internal/modules/cjs/loader:1143

Sep 27 01:56:21

throw err;

Sep 27 01:56:21

^

Sep 27 01:56:21

Sep 27 01:56:21

Error: Cannot find module './pnpm.cjs'

Sep 27 01:56:21

Require stack:

Sep 27 01:56:21

- /nix/store/x0hixjlv2wq95grrw3819qqp7ydavdxl-pnpm/bin/pnpx

Sep 27 01:56:21

at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)

Sep 27 01:56:21

at Module._load (node:internal/modules/cjs/loader:981:27)

Sep 27 01:56:21

at Module.require (node:internal/modules/cjs/loader:1231:19)

Sep 27 01:56:21

at require (node:internal/modules/helpers:177:18)

Sep 27 01:56:21

at Object.<anonymous> (/nix/store/x0hixjlv2wq95grrw3819qqp7ydavdxl-pnpm/bin/pnpx:5:1)

Sep 27 01:56:21

at Module._compile (node:internal/modules/cjs/loader:1364:14)

Sep 27 01:56:21

at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)

Sep 27 01:56:21

at Module.load (node:internal/modules/cjs/loader:1203:32)

Sep 27 01:56:21

at Module._load (node:internal/modules/cjs/loader:1019:12)

Sep 27 01:56:21

at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) {

Sep 27 01:56:21

code: 'MODULE_NOT_FOUND',

Sep 27 01:56:21

requireStack: [ '/nix/store/x0hixjlv2wq95grrw3819qqp7ydavdxl-pnpm/bin/pnpx' ]

Sep 27 01:56:21

}

Sep 27 01:56:21

Sep 27 01:56:21

Node.js v18.20.2

Solved

1 Replies

9 months ago

Hey there Sidali,

I look at your project it seems that things are now working: is the issue still present?

Thanks,
Angelo


Status changed to Awaiting User Response railway[bot] 9 months ago


Status changed to Solved brody 9 months ago


deploying went wrong "Error: Cannot find module './pnpm.cjs'" - Railway Help Station