Crash After Deploy

deltaindiecorp
HOBBY

4 months ago

Hallo I got notif error after deploy a backend system, when I try running on local I didn't find any error

This Is the Log error

Starting Container

Mar 19 20:15:53

internal/modules/cjs/loader.js:753

Mar 19 20:15:53

throw new ERR_UNKNOWN_BUILTIN_MODULE(filename);

Mar 19 20:15:53

^

Mar 19 20:15:53

Mar 19 20:15:53

Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:stream/web

Mar 19 20:15:53

at new NodeError (internal/errors.js:322:7)

Mar 19 20:15:53

at Function.Module._load (internal/modules/cjs/loader.js:753:13)

Mar 19 20:15:53

at Module.require (internal/modules/cjs/loader.js:974:19)

Mar 19 20:15:53

at require (internal/modules/cjs/helpers.js:93:18)

Mar 19 20:15:53

at Object.<anonymous> (/usr/src/app/node_modules/openai/_shims/node-runtime.js:41:15)

Mar 19 20:15:53

at Module._compile (internal/modules/cjs/loader.js:1085:14)

Mar 19 20:15:53

at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

Mar 19 20:15:53

at Module.load (internal/modules/cjs/loader.js:950:32)

Mar 19 20:15:53

at Function.Module._load (internal/modules/cjs/loader.js:790:12)

Mar 19 20:15:53

at Module.require (internal/modules/cjs/loader.js:974:19) {

Mar 19 20:15:53

code: 'ERR_UNKNOWN_BUILTIN_MODULE'

Mar 19 20:15:53

}

Mar 19 20:15:55

internal/modules/cjs/loader.js:753

Mar 19 20:15:55

throw new ERR_UNKNOWN_BUILTIN_MODULE(filename);

3 Replies

4 months ago

Hey!

This seems like an issue with your project/application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.

Other communities such as Stackoverflow might be able to help you out further.


ray-chen

Hey!This seems like an issue with your project/application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.Other communities such as Stackoverflow might be able to help you out further.

deltaindiecorp
HOBBY

4 months ago

I wonder if this issue related to the node.js version that not compatible in railway, can we change this node js version on railway environtment ?


deltaindiecorp

I wonder if this issue related to the node.js version that not compatible in railway, can we change this node js version on railway environtment ?

4 months ago

Yes this is possible and can be as simple as setting an environment/service variable, please refer to the following documentation depending on the builder you are currently using:
Nixpacks: https://nixpacks.com/docs/providers/node#setup

Railpack: https://railpack.com/languages/node


Crash After Deploy - Railway Help Station