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

Using latest for the @ai16z packages breaks the project. #6

Open
rsmets opened this issue Nov 26, 2024 · 8 comments
Open

Using latest for the @ai16z packages breaks the project. #6

rsmets opened this issue Nov 26, 2024 · 8 comments

Comments

@rsmets
Copy link

rsmets commented Nov 26, 2024

Upon a fresh pnpm install, running pnpm start errors with following output:

src/index.ts:9:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'DbCacheAdapter'.

9   DbCacheAdapter,
    ~~~~~~~~~~~~~~

src/index.ts:11:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'FsCacheAdapter'.

11   FsCacheAdapter,
     ~~~~~~~~~~~~~~

src/index.ts:12:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'ICacheManager'.

12   ICacheManager,
     ~~~~~~~~~~~~~

src/index.ts:13:3 - error TS2724: '"@ai16z/eliza"' has no exported member named 'IDatabaseCacheAdapter'. Did you mean 'IDatabaseAdapter'?

13   IDatabaseCacheAdapter,
     ~~~~~~~~~~~~~~~~~~~~~

src/index.ts:16:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'CacheManager'.

16   CacheManager,
     ~~~~~~~~~~~~

src/index.ts:23:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'validateCharacterConfig'.

23   validateCharacterConfig,
     ~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts:229:5 - error TS2353: Object literal may only specify known properties, and 'cacheManager' does not exist in type '{ conversationLength?: number; agentId?: `${string}-${string}-${string}-${string}-${string}`; character?: Character; token: string; serverUrl?: string; actions?: Action[]; evaluators?: Evaluator[]; ... 8 more ...; logging?: boolean; }'.

229     cacheManager: cache,
        ~~~~~~~~~~~~

src/index.ts:248:15 - error TS2339: Property 'username' does not exist on type 'Character'.

248     character.username ??= character.name;
                  ~~~~~~~~

src/index.ts:259:14 - error TS2339: Property 'init' does not exist on type 'PostgresDatabaseAdapter | SqliteDatabaseAdapter'.
  Property 'init' does not exist on type 'PostgresDatabaseAdapter'.

259     await db.init();
                 ~~~~

src/index.ts:264:19 - error TS2339: Property 'initialize' does not exist on type 'AgentRuntime'.

264     await runtime.initialize();
                      ~~~~~~~~~~


Found 10 errors in the same file, starting at: src/index.ts:9

 ELIFECYCLE  Command failed with exit code 2.

It is not a good practice to use latest versions for dependencies. Please pin to a compatible version for project stability and usability.

@rsmets
Copy link
Author

rsmets commented Nov 26, 2024

Upon trying to make the package version changes myself, none of the published ai16z package versions, currently 0.1.1, 0.1.2, and 0.1.3, match this project's source code. It seems that interfacing with these packages needs to be updated for this project to be functional.

@dadsec-dev
Copy link

Upon trying to make the package version changes myself, none of the published ai16z package versions, currently 0.1.1, 0.1.2, and 0.1.3, match this project's source code. It seems that interfacing with these packages needs to be updated for this project to be functional.

Hello, i had the same error when i started.

What i did was to run "PNPM INSTALL" THEN "PNPM BUILD" AND FINALLY "PNPM START"

Ensure youre running node version 23

That should do.

@zk1tty
Copy link

zk1tty commented Nov 27, 2024

Hi, I had the exact same issue with the following env.

$ node -v
v22.11.0
$ pnpm -v
9.14.2

@odilitime
Copy link

odilitime commented Nov 27, 2024

pnpm build seems to be broken in f7e0490, tried to build manually with npx tsup --format esm --dts src/* and got the same error as OP

Was able to use the agent/src/index.ts from https://github.com/ai16z/eliza/blob/v0.1.3-alpha.2/agent/src/index.ts (as latest atm is v0.1.3-alpha.2) reran tsup and that seems to work

We need to tag this repo and keep it inline with @ai16z/eliza

@nghiangovan
Copy link

@rsmets
You should delete pnpm-lock.yaml because it's out of date compared to the code. Then run pnpm install again to pull the latest packages. I tried and it worked successfully.

@SouSingh
Copy link

@dadsec-dev can you share package.json and code

@zoe27
Copy link

zoe27 commented Nov 29, 2024

seems everything goes well in my local

apple@apples-MacBook-Pro eliza-starter % node -v
v23.3.0
apple@apples-MacBook-Pro eliza-starter % pnpm -v
9.8.0 

the running log

◎ LOGS
   Registering service: 
   video 

 ["✓ Server running at http://localhost:3000/"] 
>  ["✓ Service browser initialized successfully"] 

 ["✓ Service image_description initialized successfully"] 

 ["✓ Service text_generation initialized successfully"] 

 ["✓ Service pdf initialized successfully"] 

 ["✓ Service speech_generation initialized successfully"] 

 ["✓ Service transcription initialized successfully"] 

 ["✓ Service video initialized successfully"] 

 ["◎ Chat started. Type 'exit' to quit."] 

You: 

@vpavlin
Copy link

vpavlin commented Dec 19, 2024

Check #21

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

8 participants