Build fail on render but works fine in local (Mono Repo)

Hello,

I have a mono repo with client, common and server directories
The common code is linked to the client package.json as such “common”: “file:…/common”

Here’s the build settings

  • The root is set to repository root.
  • build command is cd client && npm run build
  • publish is client/dist

After the root npm install, the postInstall script runs the npm install on both common and client directory.

When I run the build on render I encounter this error

It’s crazy. Just after I submitted this post. I tried running the build script for the common folder during the game build instead of running it during post-install
And it resolved
My assumption is only the node_modules folder can be updated/written to during the install phase
And during the build phase, other folders updated/written to

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.