How to deploy nodejs project which has submodule in it.

riteshreg
HOBBY

a year 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

a year ago

Do you have a root directory set?


a year ago

Additionally, please refrain from posting duplicate questions.


riteshreg
HOBBY

a year ago

My Submoudle contains Drizzle ORM schema.


riteshreg
HOBBY

a year ago

Yes I have set my root directory


a year ago

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


riteshreg
HOBBY

a year ago

no this is not a monorepo this is a submodule


a year ago

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


riteshreg
HOBBY

a year ago

is there any way to make submodule work in railway


a year ago

Do not specify a root directory.


tp-up
PRO

10 months 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.


How to deploy nodejs project which has submodule in it. - Railway Help Station