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

Get CI/CD working #174

Closed
sirkitree opened this issue Nov 2, 2024 · 2 comments
Closed

Get CI/CD working #174

sirkitree opened this issue Nov 2, 2024 · 2 comments

Comments

@sirkitree
Copy link
Collaborator

This is currently failing. See https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172

Run pnpm run build

[6](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:7) Sat, 02 Nov 2024 16:40:02 GMT

[7](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:8) Sat, 02 Nov 2024 16:40:02 GMT \> eliza@ build /home/runner/work/eliza/eliza

[8](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:9) Sat, 02 Nov 2024 16:40:02 GMT \> pnpm --dir core build

[9](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:10) Sat, 02 Nov 2024 16:40:02 GMT

[10](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:11) Sat, 02 Nov 2024 16:40:02 GMT

[11](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:12) Sat, 02 Nov 2024 16:40:02 GMT \> [email protected] build /home/runner/work/eliza/eliza/core

[12](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:13) Sat, 02 Nov 2024 16:40:02 GMT \> tsc

[13](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:14) Sat, 02 Nov 2024 16:40:02 GMT

[14](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:15) Sat, 02 Nov 2024 16:40:06 GMT Error: src/cli/config.ts(5,24): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../core/types.js'?

[15](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:16) Sat, 02 Nov 2024 16:40:06 GMT Error: src/core/types.ts(2,31): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './imageGenModels.js'?

[16](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:17) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(612,35): error TS2351: This expression is not constructable.

[17](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:18) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[18](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:19) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(616,40): error TS2351: This expression is not constructable.

[19](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:20) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[20](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:21) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(623,33): error TS2351: This expression is not constructable.

[21](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:22) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[22](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:23) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(632,20): error TS2351: This expression is not constructable.

[23](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:24) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[24](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:25) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(639,38): error TS2351: This expression is not constructable.

[25](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:26) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[26](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:27) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(645,41): error TS2351: This expression is not constructable.

[27](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:28) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[28](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:29) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(741,47): error TS2351: This expression is not constructable.

[29](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:30) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[30](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:31) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(742,44): error TS2351: This expression is not constructable.

[31](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:32) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[32](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:33) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(774,48): error TS2351: This expression is not constructable.

[33](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:34) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[34](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:35) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(775,55): error TS2351: This expression is not constructable.

[35](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:36) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[36](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:37) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/token.ts(777,52): error TS2351: This expression is not constructable.

[37](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:38) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[38](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:39) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/trustScoreProvider.ts(8,8): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../types/token.js'?

[39](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:40) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/trustScoreProvider.ts(11,31): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './token.js'?

[40](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:41) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/trustScoreProvider.ts(12,28): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './balances.js'?

[41](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:42) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/trustScoreProvider.ts(18,8): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../adapters/trustScoreDatabase.js'?

[42](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:43) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(117,34): error TS2351: This expression is not constructable.

[43](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:44) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[44](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:45) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(119,39): error TS2351: This expression is not constructable.

[45](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:46) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[46](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:47) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(123,31): error TS2351: This expression is not constructable.

[47](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:48) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[48](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:49) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(138,25): error TS2351: This expression is not constructable.

[49](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:50) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[50](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:51) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(139,36): error TS2351: This expression is not constructable.

[51](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:52) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[52](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:53) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(199,39): error TS2351: This expression is not constructable.

[53](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:54) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[54](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:55) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(206,17): error TS2351: This expression is not constructable.

[55](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:56) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[56](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:57) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(213,38): error TS2351: This expression is not constructable.

[57](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:58) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[58](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:59) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(214,65): error TS2351: This expression is not constructable.

[59](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:60) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[60](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:61) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(221,32): error TS2351: This expression is not constructable.

[61](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:62) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[62](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:63) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(222,32): error TS2351: This expression is not constructable.

[63](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:64) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[64](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:65) Sat, 02 Nov 2024 16:40:06 GMT Error: src/providers/wallet.ts(223,32): error TS2351: This expression is not constructable.

[65](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:66) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/bignumber.js/bignumber")' has no construct signatures.

[66](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:67) Sat, 02 Nov 2024 16:40:06 GMT Error: src/services/pdf.ts(2,45): error TS2307: Cannot find module 'pdfjs-dist/types/src/display/api' or its corresponding type declarations.

[67](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:68) Sat, 02 Nov 2024 16:40:06 GMT Error: src/services/video.ts(52,19): error TS2349: This expression is not callable.

[68](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:69) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/youtube-dl-exec/src/index")' has no call signatures.

[69](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:70) Sat, 02 Nov 2024 16:40:06 GMT Error: src/services/video.ts(74,19): error TS2349: This expression is not callable.

[70](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:71) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/youtube-dl-exec/src/index")' has no call signatures.

[71](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:72) Sat, 02 Nov 2024 16:40:06 GMT Error: src/services/video.ts(182,34): error TS2349: This expression is not callable.

[72](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:73) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/youtube-dl-exec/src/index")' has no call signatures.

[73](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:74) Sat, 02 Nov 2024 16:40:06 GMT Error: src/services/video.ts(390,23): error TS2349: This expression is not callable.

[74](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:75) Sat, 02 Nov 2024 16:40:06 GMT Type 'typeof import("/home/runner/work/eliza/eliza/node\_modules/.pnpm/[email protected]/node\_modules/youtube-dl-exec/src/index")' has no call signatures.

[75](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:76) Sat, 02 Nov 2024 16:40:06 GMT Error: src/vendor/vitsVoiceList.ts(1,32): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './vits.js'?

[76](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:77) Sat, 02 Nov 2024 16:40:06 GMT  ELIFECYCLE  Command failed with exit code 2.

[77](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:78) Sat, 02 Nov 2024 16:40:06 GMT  ELIFECYCLE  Command failed with exit code 2.

[78](https://github.com/ai16z/eliza/actions/runs/11644235815/job/32425917328?pr=172#step:7:79) Sat, 02 Nov 2024 16:40:06 GMT Error: Process completed with exit code 2.

This step has been truncated due to its large size. Download the full logs from the menu once the workflow run has completed.

Post Run actions/setup-node@v4

0s

Error:

This step has been truncated due to its large size. Download the full logs from the menu once the workflow run has completed.

Post Run pnpm/action-setup@v3

0s

Error:

This step has been truncated due to its large size. Download the full logs from the menu once the workflow run has completed.

Post Run actions/checkout@v4

0s

Error:

This step has been truncated due to its large size. Download the full logs from the menu once the workflow run has completed.

Complete job
@sirkitree
Copy link
Collaborator Author

Based on the CI errors, there are several issues that need to be addressed.

The main problems are:

  1. Module resolution and file extensions
  2. Incorrect usage of BigNumber constructor
  3. Incorrect usage of youtube-dl-exec
  4. Missing type definitions
  5. Node version compatibility

Here are the suggested fixes:

  1. Module Resolution Issues
    The TypeScript compiler is complaining about missing file extensions in imports when using Node16/NodeNext module resolution. You need to add .js extensions to relative imports. For example:
// Before
import { Something } from '../core/types'

// After
import { Something } from '../core/types.js'
  1. BigNumber Construction Issues
    There are multiple errors related to BigNumber construction from the bignumber.js package. The correct way to use it is:
// Before
new BigNumber(value)

// After 
BigNumber(value) // or
new BigNumber.BigNumber(value)
  1. YouTube DL Exec Issues
    The youtube-dl-exec package is not being called correctly. You need to use its default export:
// Before
youtubedl(url, options)

// After
youtubedl.default(url, options)
  1. PDF.js Types Issue
    Missing type definitions for pdfjs-dist. Add the types to devDependencies:
{
  "devDependencies": {
    "@types/pdfjs-dist": "^2.10.378"
  }
}

Here are the specific files that need updates:

  1. Update tsconfig.json to handle module resolution:
{
  "compilerOptions": {
    "moduleResolution": "node16",
    "allowImportingTsExtensions": true,
    "resolveJsonModule": true,
    "allowJs": true
  }
}
  1. Update CI workflow to use the correct Node version:
            - uses: actions/setup-node@v4
              with:
                  node-version: "23"
                  cache: "pnpm"

Change to:

- uses: actions/setup-node@v4
  with:
    node-version: "22"
    cache: "pnpm"
  1. Add script to fix extensions:
#!/bin/bash
find src -type f -name "*.ts" -exec sed -i 's/from "\(\.\.?\/.*\)"/from "\1.js"/g' {} +

@sirkitree
Copy link
Collaborator Author

Got this working as part of getting the basic test in place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant