I cant start my agent no matter what I do #3439
Unanswered
pgm-norbert
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Make sure you initially checkout a suitable version from the main branch i.e. don't checkout a branch like 'develop' After switching between branches it's best to clean the project and install all the related dependencies that are listed in package.json Build and start the project: PS - the official documentation is a great reference point! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this is the error Im getting:
macstudio@macstudio eliza % pnpm start --character="characters/deep-thought.character.json"
(node:85007) ExperimentalWarning:
--experimental-loader
may be removed in the future; instead useregister()
:--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use
node --trace-warnings ...
to show where the warning was created)(node:85007) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use
node --trace-deprecation ...
to show where the warning was created)node:internal/modules/run_main:122
triggerUncaughtException(
^
Error: Cannot find module '/Users/macstudio/Downloads/eliza/agent/node_modules/@elizaos/adapter-sqlite/dist/index.js' imported from /Users/macstudio/Downloads/eliza/agent/src/index.ts
at finalizeResolution (/Users/macstudio/Downloads/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:352:11)
at moduleResolve (/Users/macstudio/Downloads/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/Users/macstudio/Downloads/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /Users/macstudio/Downloads/eliza/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/Users/macstudio/Downloads/eliza/node_modules/ts-node/src/esm.ts:168:34)
at /Users/macstudio/Downloads/eliza/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/Users/macstudio/Downloads/eliza/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/Users/macstudio/Downloads/eliza/node_modules/ts-node/src/esm.ts:197:12)
at nextResolve (node:internal/modules/esm/hooks:748:28)
at Hooks.resolve (node:internal/modules/esm/hooks:240:30)
Node.js v23.3.0
/Users/macstudio/Downloads/eliza/agent:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @elizaos/[email protected] start:
node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/deep-thought.character.json"
Exit status 1
ELIFECYCLE Command failed with exit code 1.
Summary of Fixes Attempted (Still Not Working)
You've tried multiple steps to fix the missing module errors and get your project running, but it's still failing. Here's a brief summary of what we've attempted so far:
Checked & Installed Missing Packages:
@elizaos/adapter-pglite
@elizaos/client-auto
@elizaos/client-instagram
@elizaos/client-lens
ts-node
Checked for Missing
dist/
Folders in Packages:dist/
directories were missing.Fully Cleaned & Reinstalled Dependencies:
node_modules
, lock files, and built assets:Checked and Updated Package Configurations:
package.json
files pointed to the correct build output ("main": "dist/index.js"
)Rebuilt Individual Packages That Were Still Missing
dist/
:Verified
ts-node
Installation:ts-node
globally and in the monorepo.pnpm exec ts-node --version
Attempted to Run the Project Again:
pnpm start --character="characters/deep-thought.character.json"
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions