Error: Cannot find module ‘@/libs/shared/middlewares/error.middleware’ in Dockerized pnpm Monorepo
I’m working on a MERN monorepo using pnpm workspaces and trying to dockerize the entire setup using Docker Compose. The application runs perfectly without Docker but it breaks when I start docker compose up
. My project structure looks like this: