Replies: 1 comment
-
Please post a photo of your project’s folder and file structure if possible. If there is indeed an index.ts inside the src folder, try updating the tsconfig.json: { Perhaps you are running in the wrong directory. Is the src folder located in /Users/mac/eliza/? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I am having problems starting my agent. I am running into an error that shows that the entry file src/index.ts doesn't exist. This is the code I am running into: mac@MACs-MacBook-Pro eliza % node --loader ts-node/esm src/index.ts --isRoot --characters=characters/trump.character.json
(node:35743) 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:35743) [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/mac/eliza/src/index.ts' imported from /Users/mac/eliza/
at finalizeResolution (/Users/mac/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366:11)
at moduleResolve (/Users/mac/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/Users/mac/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /Users/mac/eliza/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/Users/mac/eliza/node_modules/ts-node/src/esm.ts:168:34)
at /Users/mac/eliza/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/Users/mac/eliza/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/Users/mac/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)
Then getting this error: # Check root directory
ls *.ts
Check src directory if it exists
ls src/
zsh: command not found: #
zsh: no matches found: *.ts
zsh: command not found: #
ls: src/: No such file or directory
Beta Was this translation helpful? Give feedback.
All reactions