Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose failure #112

Open
lancenonce opened this issue Jan 29, 2025 · 0 comments
Open

Docker Compose failure #112

lancenonce opened this issue Jan 29, 2025 · 0 comments

Comments

@lancenonce
Copy link

Issue

After running docker compose up on a fresh clone (no .env vars set), the build fails with a complaint about dependencies that aren't found:

=> ERROR [eliza builder 11/12] RUN pnpm build                                           0.8s
------
 > [eliza builder 11/12] RUN pnpm build:
0.269 
0.269 > @elizaos/[email protected] build /app
0.269 > tsup src/index.ts --format esm --dts
0.269 
0.399 CLI Building entry: src/index.ts
0.399 CLI Using tsconfig: tsconfig.json
0.399 CLI tsup v8.3.5
0.402 CLI Target: esnext
0.402 ESM Build start
0.415 ESM dist/index.js 24.99 KB
0.415 ESM ⚡️ Build success in 13ms
0.520 DTS Build start
0.749 src/index.ts(1,30): error TS2307: Cannot find module '@elizaos/client-direct' or its corresponding type declarations.
0.749 src/index.ts(8,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
0.749 src/index.ts(9,33): error TS2307: Cannot find module '@elizaos/plugin-bootstrap' or its corresponding type declarations.
0.749 src/index.ts(10,34): error TS2307: Cannot find module '@elizaos/plugin-node' or its corresponding type declarations.
0.749 src/index.ts(11,30): error TS2307: Cannot find module '@elizaos/plugin-solana' or its corresponding type declarations.
0.749 src/index.ts(12,16): error TS2307: Cannot find module 'fs' or its corresponding type declarations.
0.749 src/index.ts(114,32): error TS2503: Cannot find namespace 'NodeJS'.
0.749 src/index.ts(167,27): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
0.749 src/index.ts(177,3): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
0.749 
0.751 Error: error occurred in dts build
0.751     at Worker.<anonymous> (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/tsup/dist/index.js:1541:26)
0.751     at Worker.emit (node:events:513:28)
0.751     at MessagePort.<anonymous> (node:internal/worker:267:53)
0.751     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
0.751     at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
0.752 DTS Build error
0.762  ELIFECYCLE  Command failed with exit code 1.
------
failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 1

Steps to Reproduce

1: Clone the repo
2: run docker compose up

Run specs

Running MacOS M3 (aarch64), got the same error on an i386 emulator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant