Xu22Web / tech-study-docker

学习强国Docker 40分/天 A flexible and light docker image for xuexiqiangguo based on Node.js
74 stars 11 forks source link

项目启动失败 #13

Open Epiphany7725 opened 8 months ago

Epiphany7725 commented 8 months ago

启动提示这个错误,更改了配置也不行

Epiphany7725 commented 8 months ago
/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
src/app.ts:153:35 - error TS2493: Tuple type '[boolean, boolean, boolean]' of length '3' has no element at index '3'.

153       shared.schedule?.taskConfig[TaskType.PAPER] &&
                                      ~~~~~~~~~~~~~~

    at createTSError (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:859:12)
    at reportTSError (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:863:19)
    at getOutput (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1077:36)
    at Object.compile (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1433:41)
    at Module.m._compile (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1617:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Object.require.extensions.<computed> [as .ts] (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Function.Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  diagnosticCodes: [ 2493 ]
}
 ELIFECYCLE  Command failed with exit code 1.
Xu22Web commented 7 months ago

查看下 taskConfig '[boolean, boolean, boolean]'

XATUCSJY commented 6 months ago
/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
src/app.ts:153:35 - error TS2493: Tuple type '[boolean, boolean, boolean]' of length '3' has no element at index '3'.

153       shared.schedule?.taskConfig[TaskType.PAPER] &&
                                      ~~~~~~~~~~~~~~

    at createTSError (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:859:12)
    at reportTSError (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:863:19)
    at getOutput (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1077:36)
    at Object.compile (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1433:41)
    at Module.m._compile (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1617:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Object.require.extensions.<computed> [as .ts] (/root/tech-study-node/node_modules/.pnpm/ts-node@10.9.1_@types+node@18.11.18_typescript@4.9.4/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Function.Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  diagnosticCodes: [ 2493 ]
}
 ELIFECYCLE  Command failed with exit code 1.

老哥这个问题怎么解决的? 我的schedule.ts配置是这样的: /**

/**

warrenhoo commented 5 months ago

我有同样的错误,老哥解决了吗

Epiphany7725 commented 5 months ago

解决了 但是我忘了怎么弄了发自我的 iPhone在 2024年1月20日,11:21,warren @.***> 写道: 我有同样的错误,老哥解决了吗

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>