How to deploy nodejs project which has submodule in it.
riteshreg
HOBBYOP

2 years ago

I want to deploy nodejs project which has one submodule but railway is not pulling the submodule. it worked fine with render.com

The log look like this error TS2307: Cannot find module '../../../myproject/submodule' or its corresponding type declarations.

10 Replies

2 years ago

Do you have a root directory set?


2 years ago

Additionally, please refrain from posting duplicate questions.


riteshreg
HOBBYOP

2 years ago

My Submoudle contains Drizzle ORM schema.


riteshreg
HOBBYOP

2 years ago

Yes I have set my root directory


2 years ago

You wouldn't be able to import anything outside of the set root directory, is this a shared monorepo?


riteshreg
HOBBYOP

2 years ago

no this is not a monorepo this is a submodule


2 years ago

You wouldn't be able to import anything outside of the set root directory.


riteshreg
HOBBYOP

2 years ago

is there any way to make submodule work in railway


2 years ago

Do not specify a root directory.


tp-up
PRO

2 years ago

Do not specify a root directory.

does this mean it should work when no root directory is set? we have set no root dir, but the submodule files are not there when deployed.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...