#Error Deploying on Digital Ocean App Platform

3 messages · Page 1 of 1 (latest)

hearty ridge
#

Hey Folks

I have been trying to deploy my app to DO and I keep getting the error

Error: Cannot find module '/workspace/dist/main'
 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
 at Function.Module._load (node:internal/modules/cjs/loader:841:27)
 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
 at node:internal/main/run_main_module:22:47 {
 code: 'MODULE_NOT_FOUND',
 requireStack: []
 }

So I have tried different variations in the package.json within the start:prod command but cant get it to build complete

Does anyone have any experience with getting this to work?

warped crescent
#

Can you send the Dockerfile?

tribal wind
#

dist/main doesn't exist in your container.