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

agent & plugin-image-generation failed to build #227

Closed
o-on-x opened this issue Nov 7, 2024 · 3 comments
Closed

agent & plugin-image-generation failed to build #227

o-on-x opened this issue Nov 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@o-on-x
Copy link
Contributor

o-on-x commented Nov 7, 2024

> eliza@ build /home/ooo/apps/ai16z_eliza/work/latest_clone/eliza
> bash ./scripts/build.sh

Building package: agent

> @eliza/[email protected] build
> tsup --format esm --dts

No input files, try "tsup <your-file>" instead
Failed to build agent

...

Building package: plugin-image-generation
> @eliza/[email protected] build
> tsup --format esm --dts

DTS Build start
src/index.ts(8,8): error TS2307: Cannot find module '@eliza/core' or its corresponding type declarations.
src/index.ts(9,29): error TS2307: Cannot find module '@eliza/core' or its corresponding type declarations.

Error: error occurred in dts build
    at Worker.<anonymous> (/home/ooo/apps/ai16z_eliza/work/latest_clone/eliza/node_modules/tsup/dist/index.js:1541:26)
    at Worker.emit (node:events:507:28)
    at MessagePort.<anonymous> (node:internal/worker:267:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
DTS Build error
Failed to build plugin-image-generation
@o-on-x o-on-x added the bug Something isn't working label Nov 7, 2024
@o-on-x o-on-x changed the title latest build image generation failed to build agent & plugin-image-generation agent & plugin-image-generation failed to build Nov 7, 2024
@o-on-x
Copy link
Contributor Author

o-on-x commented Nov 7, 2024

setting this in packages/plugin-image-generation/tsconfig.json

    "extends": "../../tsconfig.json",
    "compilerOptions": {
      "outDir": "dist",
      "rootDir": ".",
      "module": "ESNext",
      "moduleResolution": "Bundler",
      "types": ["node"]
    },
    "include": ["src"],
    "references": [
      { "path": "../core" }
    ]
  }

@o-on-x
Copy link
Contributor Author

o-on-x commented Nov 8, 2024

still issues with finding @eliza/core

@lalalune
Copy link
Member

lalalune commented Nov 8, 2024

should be fixed on my branch now

@lalalune lalalune closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants