Report this

What is the reason for this report?

Cannot build nestjs app in nx monorepo with App Platform

Posted on May 17, 2022

I like the simplicity of the App Platform. Can anyone help me with building an nestjs app in nx monorepo, please?

I got this error when I run the build command (yarn nx run my-nest-app:build:production) for an nx repo (https://github.com/rogersnowremoval/nx-test):

[nx-test] [2022-05-17 05:33:48] 
[nx-test] [2022-05-17 05:34:23] cp: cannot create special file '/layers/digitalocean_node/node_modules/.cache/nx/d/d.sock': Operation not supported
[nx-test] [2022-05-17 05:34:23] unable to invoke layer creator
[nx-test] [2022-05-17 05:34:23] caching node_modules for future builds: exit status 1
[nx-test] [2022-05-17 05:34:23] ERROR: failed to build: exit status 1
[nx-test] [2022-05-17 05:34:33] 
[nx-test] [2022-05-17 05:34:33] For documentation on the buildpacks used to build your app, please see:
[nx-test] [2022-05-17 05:34:33]    Node.js: https://do.co/apps-buildpack-node
[nx-test] [2022-05-17 05:34:33] 
[nx-test] [2022-05-17 05:34:33]  ! Build failed (145)

Thank you in advance!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.