R
Railway12mo ago
Nick

Error: Cannot find module './pnpm.cjs' when trying to build an Nx monorepo app

I might just be off the beaten track here with pnpm, as this looks like a build system error rather than anything to do with my codebase. Basically I have a fairly standard Nx monorepo, pnpm as the package manager, and have NIXPACKS_NX_APP_NAME=api in the build pipeline. This should be enough to get Nixpacks building according to https://nixpacks.com/docs/providers/node But the build fails with the below error:
Node | Nixpacks
App source + Nix packages + Docker = Image
No description
3 Replies
Percy
Percy12mo ago
Project ID: d0ffa968-8c6a-44d9-9b8b-9fb411534dbb
Nick
NickOP12mo ago
d0ffa968-8c6a-44d9-9b8b-9fb411534dbb
Nick
NickOP12mo ago
Running locally this seems to be a nixpacks issue. I've opened a GitHub issue here: https://github.com/railwayapp/nixpacks/issues/1034
GitHub
"Error: Cannot find module './pnpm.cjs'" when building Nx monorepo ...
Is there an existing issue for this? I have searched the existing issues Describe the bug When building an app within an Nx monorepo, with pnpm, pnpx build command fails with the below error nixpac...
Want results from more Discord servers?
Add your server