Question

Cannot build nestjs app in nx monorepo with App Platform

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!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi,

Can you try force redeploying your app and let us know what happens? If the error persists please submit a support ticket.

Best, Moises