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

Error after updating to latest version #2871

Closed
sonatonagems opened this issue Jan 28, 2025 · 9 comments
Closed

Error after updating to latest version #2871

sonatonagems opened this issue Jan 28, 2025 · 9 comments
Labels
bug Something isn't working

Comments

@sonatonagems
Copy link

I am getting the following error. Would like to know how to resolve this:
(node:23019) 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:23019) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)

node:internal/modules/run_main:104
triggerUncaughtException(
^
Error: Cannot find module '/home/sonat/eliza/agent/node_modules/@elizaos/adapter-pglite/dist/index.js' imported from /home/sonat/eliza/agent/src/index.ts
at finalizeResolution (/home/sonat/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:352:11)
at moduleResolve (/home/sonat/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/home/sonat/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /home/sonat/eliza/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/home/sonat/eliza/node_modules/ts-node/src/esm.ts:168:34)
at /home/sonat/eliza/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/home/sonat/eliza/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/home/sonat/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.5.0

@sonatonagems sonatonagems added the bug Something isn't working label Jan 28, 2025
@naiveai-dev
Copy link

Same happened in Node 23.3.0.
Node 23.6.0 also seems like not compatible with 0.1.8.
It works fine in 0.1.7 for some reason

@tcm390
Copy link
Collaborator

tcm390 commented Jan 29, 2025

Hi @naiveai-dev, could you kindly pull the latest develop branch and check if the issue is resolved?

@naiveai-dev
Copy link

Thanks @tcm390 . But sadly, I tried but it still got an error. Do I need to delete the existing version to run the latest version of Eliza without errors? I'll proceed this way first and check if the issue is resolved.

@sonatonagems
Copy link
Author

@tcm390 im still getting an error after pulling the latest develop branch:

(node:883) 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:883) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)

node:internal/modules/run_main:104
triggerUncaughtException(
^
Error: Cannot find module '/home/sonat/eliza/agent/node_modules/@elizaos/adapter-pglite/dist/index.js' imported from /home/sonat/eliza/agent/src/index.ts
at finalizeResolution (/home/sonat/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:352:11)
at moduleResolve (/home/sonat/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/home/sonat/eliza/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /home/sonat/eliza/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/home/sonat/eliza/node_modules/ts-node/src/esm.ts:168:34)
at /home/sonat/eliza/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/home/sonat/eliza/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/home/sonat/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.5.0

@naiveai-dev
Copy link

same here. Still got an error. Is Node.js v23.6.0 not supported in Eliza os?

@AIFlowML
Copy link
Collaborator

23.6.0 is not yet supported
Can you run on a clean develop with the suported version please and report back to me ?
Also, adapter-pglite missing. Did you perform and clean install build ?

Tnks a lot.

@naiveai-dev
Copy link

naiveai-dev commented Jan 30, 2025

@AIFlowML Thanks. 23.5.0 works fine after I run on a clean develop. I think quick start
Prerequisites should be changed with Node specific node version. (ie. under 23.5.0 supported)
My team members assumed they needed the most recent version of Node.js, so they all updated their installations to Node.js 23.6.0.
Seems like most issues are occured by Node Version in my case.

@sonatonagems
Copy link
Author

@AIFlowML sorry I'm a complete beginner. how do i perform and clean install build? Is it just i do pnpm clean and pnpm build?

@sonatonagems
Copy link
Author

@AIFlowML i got it fixed thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants