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

Request for a Simple Guide on ESM and Required Dependencies #2598

Open
lincheoll opened this issue Jan 21, 2025 · 2 comments
Open

Request for a Simple Guide on ESM and Required Dependencies #2598

lincheoll opened this issue Jan 21, 2025 · 2 comments

Comments

@lincheoll
Copy link
Contributor

Hi,

While trying to integrate elizaos/core into my project, I encountered the following issues:

  1. ESM-related Problems

    • During testing with both JavaScript and TypeScript, I faced challenges due to ESM compatibility.
    • For instance, the need to set "type": "module" in package.json wasn't clearly mentioned, which caused some confusion.
  2. Required Dependencies

    • Packages like sharp, dotenv, and @tavily/core had to be installed separately to make the project work.
    • These dependencies were not mentioned in the documentation, leading to initial setup difficulties.

To address these issues, it would be helpful to have a simple guide covering the following points:

  • Basic Configuration
    • What needs to be added to package.json (e.g., "type": "module")
  • Recommended TypeScript Settings
    • Suggested tsconfig.json configuration
  • Required Dependencies
    • A list of dependencies necessary for the project to run

A beginner-friendly guide with clear instructions for the initial setup would be greatly appreciated.

Thank you!

@JoeyKhd
Copy link
Contributor

JoeyKhd commented Jan 21, 2025

Is this with the eliza starter?

Also the issue you faced is properly described in the readme:

Additional Requirements
You may need to install Sharp. If you see an error when starting up, try installing it with the following command:

pnpm install --include=optional sharp

@lincheoll
Copy link
Contributor Author

@JoeyKhd

Issues arise when attempting to integrate it with an existing project using:

npm install @elizaos/core

Additionally, it's problematic that not only sharp but also other packages are required to be installed separately.

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

2 participants