You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to install few plugins to my characters.
Starting with the eliza repo that worked when running without any plugins, I installed : pnpm add @elizaos/plugin-allora,
there was a warning
ERR_PNPM_ADDING_TO_ROOT Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.
So I do both of what it asked for, and able to installed the plugin, it does show in the main node-modules
Then I added the plugin to my characters' plugins array :
"name": "trump",
"clients": [
],
"modelProvider": "openai",
"plugins": ["@elizaos/plugin-allora"],
"settings": {
"secrets": {// I did add those ALLORA API, both removing or keeping it resulting the same error},
"voice": {
"model": "en_US-male-medium"
}
},
and getting this : TypeError: pluginConstructor is not a function bug
after doing : pnpm start --character="characters/trump.character.json"
WARN Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.5.0","pnpm":"9.15.7"})
> eliza@ start /Volumes/D/Study/Work/eliza
> pnpm --filter "@elizaos/agent" start --isRoot --character\=characters/trump.character.json
. | WARN Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.5.0","pnpm":"9.15.7"})
docs | WARN Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.5.0","pnpm":"9.15.7"})
> @elizaos/[email protected] start /Volumes/D/Study/Work/eliza/agent
> node --loader ts-node/esm src/index.ts --isRoot --character\=characters/trump.character.json
(node:23649) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--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:23649) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[2025-03-18 04:14:30] INFO: Loading embedding settings:
USE_OPENAI_EMBEDDING: ""
USE_OLLAMA_EMBEDDING: ""
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
(node:23649) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
[2025-03-18 04:14:30] INFO: Parsed settings:
USE_OPENAI_EMBEDDING: ""
USE_OPENAI_EMBEDDING_TYPE: "string"
USE_OLLAMA_EMBEDDING: ""
USE_OLLAMA_EMBEDDING_TYPE: "string"
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
[2025-03-18 04:14:30] INFO: Loading embedding settings:
USE_OPENAI_EMBEDDING: ""
USE_OLLAMA_EMBEDDING: ""
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
Error parsing character from /Volumes/D/Study/Work/eliza/characters/trump.character.json: TypeError: pluginConstructor is not a function
at jsonToCharacter (file:///Volumes/D/Study/Work/eliza/agent/src/index.ts:184:38)
at async loadCharacterTryPath (file:///Volumes/D/Study/Work/eliza/agent/src/index.ts:244:27)
at async loadCharacters (file:///Volumes/D/Study/Work/eliza/agent/src/index.ts:279:35)
at async startAgents (file:///Volumes/D/Study/Work/eliza/agent/src/index.ts:638:22)
[2025-03-18 04:14:30] INFO: Loading character settings:
ARGV: [
"/opt/homebrew/Cellar/node/23.5.0/bin/node",
"/Volumes/D/Study/Work/eliza/agent/src/index.ts",
"--isRoot",
"--character=characters/trump.character.json"
]
CHARACTER_ARG: "--character=characters/trump.character.json"
CWD: "/Volumes/D/Study/Work/eliza/agent"
[2025-03-18 04:14:30] INFO: Parsed settings:
USE_OPENAI_EMBEDDING: ""
USE_OPENAI_EMBEDDING_TYPE: "string"
USE_OLLAMA_EMBEDDING: ""
USE_OLLAMA_EMBEDDING_TYPE: "string"
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
/Volumes/D/Study/Work/eliza/agent:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @elizaos/[email protected] start: `node --loader ts-node/esm src/index.ts --isRoot --character\=characters/trump.character.json`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
```
I did try another plugin : @elizaos/plugin-web-search, but it still getting the same bug.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was trying to install few plugins to my characters.
Starting with the eliza repo that worked when running without any plugins, I installed :
pnpm add @elizaos/plugin-allora
,there was a warning
So I do both of what it asked for, and able to installed the plugin, it does show in the main node-modules

Then I added the plugin to my characters' plugins array :
and getting this : TypeError: pluginConstructor is not a function bug
after doing :
pnpm start --character="characters/trump.character.json"
Beta Was this translation helpful? Give feedback.
All reactions