Closed phoenixVS closed 1 year ago
So let's isolate things here. First, does it work without Docker on a local setup?
pnpm run build
pnpm run dev
Both works correct
Only errored in docker-compose up app
Maybe problem is relative with using docker volumes for node_modules
Here is docker-compose.yml
version: '3.9'
services:
app: &app
container_name: gxpaas
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
- "3001:3001"
- "1337:1337"
volumes:
- .:/app
- /app/node_modules
db:
image: cockroachdb/cockroach:v19.2.2
ports:
- "26257:26257"
- "8080:8080"
command: start-single-node --insecure
volumes:
- "./cockroach-data/crdb:/cockroach/cockroach-data"
networks:
turbo-network:
driver: bridge
Using pnpm with turborepo running in Docker (with compose) next-transpile-module doesn't see packages/ui/
To Reproduce Run in root pnpm install docker-compose up app
Setup
next-transpile-modules
version:9npm
/yarn
version:pnpm latestDockerfile
next.config.js
apps/landing/package.json
packages/ui/package.json