Skip to content

Cannot find module '@ai16z/eliza' or its corresponding type declarations. #601

Closed
@Howard0x3f

Description

Environment:
WSL2 : Ubuntu-20.04
Nodejs:v23.1
pnpm:9.14.2
git checkout v0.1.3
When I run pnpm install, no errors occur.
However, when I run pnpm start --character="characters/trump.character.json", an issue arises.
pnpm --filter "@ai16z/agent" start --isRoot "--character=characters/trump.character.json"

@ai16z/agent@0.0.1 start /home/workspace/eliza/agent
tsc && node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/trump.character.json"

src/character.ts:1:64 - error TS2307: Cannot find module '@ai16z/eliza' or its corresponding type declarations.

1 import { Character, ModelProviderName, defaultCharacter } from "@ai16z/eliza";
~~~~~~~~~~~~~~

src/index.ts:1:41 - error TS2307: Cannot find module '@ai16z/adapter-postgres' or its corresponding type declarations.

1 import { PostgresDatabaseAdapter } from "@ai16z/adapter-postgres";
Describe the bug

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions