The last overload gave the following error.
Argument of type '(value: unknown) => void' is not assignable to parameter of type '() => void'.
src/server/nodeinfo.ts(97,9): error TS2790: The operand of a 'delete' operator must be optional.
src/server/web/manifest.ts(2,40): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
src/server/web/url-preview.ts(34,25): error TS2339: Property 'default' does not exist on type '(url: string, options?: Options | undefined) => Promise<Result>'.
src/services/drive/add-file.ts(478,51): error TS2345: Argument of type 'import("/misskey/packages/backend/src/misc/schema").ObjType<{ readonly id: { readonly type: "string"; readonly optional: false; readonly nullable: false; readonly format: "id"; readonly example: "xxxxxxxxxx"; }; readonly createdAt: { readonly type: "string"; readonly optional: false; readonly nullable: false; readon...' is not assignable to parameter of type 'import("/misskey/packages/backend/src/misc/schema").ObjType<{ readonly id: { readonly type: "string"; readonly optional: false; readonly nullable: false; readonly format: "id"; readonly example: "xxxxxxxxxx"; }; readonly createdAt: { readonly type: "string"; readonly optional: false; readonly nullable: false; readon...'.
Type 'null' is not assignable to type 'ObjType<{ readonly id: { readonly type: "string"; readonly optional: false; readonly nullable: false; readonly format: "id"; readonly example: "xxxxxxxxxx"; }; readonly createdAt: { readonly type: "string"; readonly optional: false; readonly nullable: false; readonly format: "date-time"; }; ... 13 more ...; readonly...'.
src/services/drive/add-file.ts(479,47): error TS2345: Argument of type 'import("/misskey/packages/backend/src/misc/schema").ObjType<{ readonly id: { readonly type: "string"; readonly optional: false; readonly nullable: false; readonly format: "id"; readonly example: "xxxxxxxxxx"; }; readonly createdAt: { readonly type: "string"; readonly optional: false; readonly nullable: false; readon...' is not assignable to parameter of type 'import("/misskey/packages/backend/src/misc/schema").ObjType<{ readonly id: { readonly type: "string"; readonly optional: false; readonly nullable: false; readonly format: "id"; readonly example: "xxxxxxxxxx"; }; readonly createdAt: { readonly type: "string"; readonly optional: false; readonly nullable: false; readon...'.
src/services/drive/generate-video-thumbnail.ts(4,25): error TS7016: Could not find a declaration file for module 'fluent-ffmpeg'. '/misskey/packages/backend/node_modules/fluent-ffmpeg/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/fluent-ffmpeg if it exists or add a new declaration (.d.ts) file containing declare module 'fluent-ffmpeg';
src/services/logger.ts(3,41): error TS7016: Could not find a declaration file for module 'color-convert'. '/misskey/packages/backend/node_modules/color-convert/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/color-convert if it exists or add a new declaration (.d.ts) file containing declare module 'color-convert';
src/services/logger.ts(8,28): error TS7016: Could not find a declaration file for module 'syslog-pro'. '/misskey/packages/backend/node_modules/syslog-pro/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/syslog-pro if it exists or add a new declaration (.d.ts) file containing declare module 'syslog-pro';
src/services/logger.ts(62,44): error TS2532: Object is possibly 'undefined'.
src/services/logger.ts(70,81): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
src/services/note/delete.ts(52,35): error TS2454: Variable 'renote' is used before being assigned.
src/services/user-cache.ts(11,34): error TS7006: Parameter '_' implicitly has an 'any' type.
src/services/user-cache.ts(11,37): error TS7006: Parameter 'data' implicitly has an 'any' type.
done.
Info: === tsc-alias starting ===
Info: 566 files were affected!
npm notice
npm notice New minor version of npm available! 8.3.1 -> 8.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.8.0
npm notice Run npm install -g [email protected] to update!
npm notice
building packages/client ...

build
webpack

<s> [webpack.Progress] 0%

<s> [webpack.Progress] 1% setup before run
<s> [webpack.Progress] 1% setup before run NodeEnvironmentPlugin
<s> [webpack.Progress] 1% setup before run
<s> [webpack.Progress] 2% setup run
<s> [webpack.Progress] 2% setup run webpack-cli
<s> [webpack.Progress] 2% setup run
<s> [webpack.Progress] 4% setup normal module factory
<s> [webpack.Progress] 4% setup normal module factory
<s> [webpack.Progress] 5% setup context module factory
<s> [webpack.Progress] 5% setup context module factory
<s> [webpack.Progress] 6% setup before compile
<s> [webpack.Progress] 6% setup before compile ProgressPlugin
<s> [webpack.Progress] 6% setup before compile
<s> [webpack.Progress] 7% setup compile
<s> [webpack.Progress] 7% setup compile ExternalsPlugin
<s> [webpack.Progress] 7% setup compile
<s> [webpack.Progress] 8% setup compilation
<s> [webpack.Progress] 8% setup compilation ArrayPushCallbackChunkFormatPlugin
<s> [webpack.Progress] 8% setup compilation JsonpChunkLoadingPlugin
<s> [webpack.Progress] 8% setup compilation StartupChunkDependenciesPlugin
<s> [webpack.Progress] 8% setup compilation ImportScriptsChunkLoadingPlugin
<s> [webpack.Progress] 8% setup compilation FetchCompileWasmPlugin
<s> [webpack.Progress] 8% setup compilation FetchCompileAsyncWasmPlugin
<s> [webpack.Progress] 8% setup compilation WorkerPlugin
<s> [webpack.Progress] 8% setup compilation SplitChunksPlugin
<s> [webpack.Progress] 8% setup compilation ResolverCachePlugin
<s> [webpack.Progress] 8% setup compilation
<s> [webpack.Progress] 9% setup compilation
<s> [webpack.Progress] 9% setup compilation ProgressPlugin
<s> [webpack.Progress] 9% setup compilation DefinePlugin
<s> [webpack.Progress] 9% setup compilation vue-loader-plugin
<s> [webpack.Progress] 9% setup compilation ChunkPrefetchPreloadPlugin
<s> [webpack.Progress] 9% setup compilation JavascriptModulesPlugin
<s> [webpack.Progress] 9% setup compilation JsonModulesPlugin
<s> [webpack.Progress] 9% setup compilation AssetModulesPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation RuntimePlugin
<s> [webpack.Progress] 9% setup compilation InferAsyncModulesPlugin
<s> [webpack.Progress] 9% setup compilation DataUriPlugin
<s> [webpack.Progress] 9% setup compilation FileUriPlugin
<s> [webpack.Progress] 9% setup compilation CompatibilityPlugin
<s> [webpack.Progress] 9% setup compilation HarmonyModulesPlugin
<s> [webpack.Progress] 9% setup compilation AMDPlugin
<s> [webpack.Progress] 9% setup compilation RequireJsStuffPlugin
<s> [webpack.Progress] 9% setup compilation CommonJsPlugin
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
<s> [webpack.Progress] 9% setup compilation NodeStuffPlugin
<s> [webpack.Progress] 9% setup compilation APIPlugin
<s> [webpack.Progress] 9% setup compilation ExportsInfoApiPlugin
<s> [webpack.Progress] 9% setup compilation WebpackIsIncludedPlugin
<s> [webpack.Progress] 9% setup compilation ConstPlugin
<s> [webpack.Progress] 9% setup compilation UseStrictPlugin
<s> [webpack.Progress] 9% setup compilation RequireIncludePlugin
<s> [webpack.Progress] 9% setup compilation RequireEnsurePlugin
<s> [webpack.Progress] 9% setup compilation RequireContextPlugin
<s> [webpack.Progress] 9% setup compilation ImportPlugin
<s> [webpack.Progress] 9% setup compilation RequireContextPlugin
<s> [webpack.Progress] 9% setup compilation SystemPlugin
<s> [webpack.Progress] 9% setup compilation ImportMetaPlugin
<s> [webpack.Progress] 9% setup compilation URLPlugin
<s> [webpack.Progress] 9% setup compilation DefaultStatsFactoryPlugin
<s> [webpack.Progress] 9% setup compilation DefaultStatsPresetPlugin
<s> [webpack.Progress] 9% setup compilation DefaultStatsPrinterPlugin
<s> [webpack.Progress] 9% setup compilation JavascriptMetaInfoPlugin
<s> [webpack.Progress] 9% setup compilation EnsureChunkConditionsPlugin
<s> [webpack.Progress] 9% setup compilation RemoveEmptyChunksPlugin
<s> [webpack.Progress] 9% setup compilation MergeDuplicateChunksPlugin
<s> [webpack.Progress] 9% setup compilation FlagIncludedChunksPlugin
<s> [webpack.Progress] 9% setup compilation SideEffectsFlagPlugin
<s> [webpack.Progress] 9% setup compilation FlagDependencyExportsPlugin
<s> [webpack.Progress] 9% setup compilation FlagDependencyUsagePlugin
<s> [webpack.Progress] 9% setup compilation InnerGraphPlugin
<s> [webpack.Progress] 9% setup compilation MangleExportsPlugin
<s> [webpack.Progress] 9% setup compilation ModuleConcatenationPlugin
<s> [webpack.Progress] 9% setup compilation NoEmitOnErrorsPlugin
<s> [webpack.Progress] 9% setup compilation RealContentHashPlugin
<s> [webpack.Progress] 9% setup compilation WasmFinalizeExportsPlugin
<s> [webpack.Progress] 9% setup compilation DeterministicModuleIdsPlugin
<s> [webpack.Progress] 9% setup compilation DeterministicChunkIdsPlugin
<s> [webpack.Progress] 9% setup compilation DefinePlugin
<s> [webpack.Progress] 9% setup compilation TerserPlugin
<s> [webpack.Progress] 9% setup compilation TemplatedPathPlugin
<s> [webpack.Progress] 9% setup compilation RecordIdsPlugin
<s> [webpack.Progress] 9% setup compilation WarnCaseSensitiveModulesPlugin
<s> [webpack.Progress] 9% setup compilation
<s> [webpack.Progress] 10% building
<s> [webpack.Progress] 10% building 0/1 entries 0/0 dependencies 0/0 modules
<s> [webpack.Progress] 10% building import loader ./node_modules/ts-loader/index.js
<s> [webpack.Progress] 10% building 0/2 entries 2/2 dependencies 0/2 modules
<s> [webpack.Progress] 10% building 0/2 entries 2/3 dependencies 0/2 modules
<s> [webpack.Progress] 10% building 0/2 entries 32/46 dependencies 0/29 modules
<s> [webpack.Progress] 10% building 0/2 entries 34/46 dependencies 1/32 modules
<s> [webpack.Progress] 10% building import loader ./node_modules/vue-style-loader/index.js
<s> [webpack.Progress] 10% building import loader ./node_modules/css-loader/dist/cjs.js
<s> [webpack.Progress] 10% building import loader ./node_modules/postcss-loader/dist/cjs.js
<s> [webpack.Progress] 10% building import loader ./node_modules/sass-loader/dist/cjs.js
<s> [webpack.Progress] 10% building 0/2 entries 78/136 dependencies 12/39 modules
<s> [webpack.Progress] 10% building import loader ./node_modules/vue-loader/dist/index.js
<s> [webpack.Progress] 10% building 0/2 entries 89/156 dependencies 12/49 modules
<s> [webpack.Progress] 10% building 0/2 entries 148/196 dependencies 14/103 modules
<s> [webpack.Progress] 10% building 0/2 entries 200/383 dependencies 16/144 modules
<s> [webpack.Progress] 10% building 0/2 entries 358/492 dependencies 18/300 modules
<s> [webpack.Progress] 10% building import loader ./node_modules/vue-loader/dist/pitcher.js
<s> [webpack.Progress] 10% building 0/2 entries 492/492 dependencies 18/395 modules
<s> [webpack.Progress] 10% building import loader ./node_modules/vue-loader/dist/templateLoader.js
<s> [webpack.Progress] 10% building 0/2 entries 492/492 dependencies 18/395 modules
<s> [webpack.Progress] 10% building 0/2 entries 492/500 dependencies 18/395 modules
<s> [webpack.Progress] 10% building 0/2 entries 681/700 dependencies 35/526 modules
<s> [webpack.Progress] 10% building 0/2 entries 847/900 dependencies 35/659 modules
<s> [webpack.Progress] 37% building 1/2 entries 894/952 dependencies 39/693 modules
<s> [webpack.Progress] 37% building import loader ./node_modules/json5-loader/dist/cjs.js
<s> [webpack.Progress] 37% building 1/2 entries 947/989 dependencies 40/730 modules
<s> [webpack.Progress] 37% building 1/2 entries 984/1000 dependencies 40/758 modules
<s> [webpack.Progress] 37% building import loader ./node_modules/vue-loader/dist/stylePostLoader.js
<s> [webpack.Progress] 37% building 1/2 entries 1120/1181 dependencies 44/847 modules
<s> [webpack.Progress] 37% building 1/2 entries 1161/1200 dependencies 44/877 modules
<s> [webpack.Progress] 37% building 1/2 entries 1400/1474 dependencies 79/1041 modules
<s> [webpack.Progress] 37% building 1/2 entries 1456/1500 dependencies 85/1061 modules
<s> [webpack.Progress] 37% building 1/2 entries 1748/1840 dependencies 100/1248 modules
<s> [webpack.Progress] 37% building 1/2 entries 1800/1840 dependencies 115/1264 modules
<s> [webpack.Progress] 37% building 1/2 entries 1900/2167 dependencies 115/1331 modules
<s> [webpack.Progress] 37% building 1/2 entries 2145/2200 dependencies 135/1387 modules
<s> [webpack.Progress] 37% building 1/2 entries 2200/2254 dependencies 143/1398 modules
<s> [webpack.Progress] 37% building 1/2 entries 2400/2443 dependencies 161/1432 modules
<s> [webpack.Progress] 37% building 1/2 entries 2492/2600 dependencies 171/1449 modules
<s> [webpack.Progress] 37% building 1/2 entries 2693/2757 dependencies 200/1471 modules
<s> [webpack.Progress] 37% building 1/2 entries 2800/2814 dependencies 206/1484 modules
<s> [webpack.Progress] 37% building 1/2 entries 2877/2900 dependencies 231/1498 modules
<s> [webpack.Progress] 37% building 1/2 entries 3058/3100 dependencies 289/1514 modules
<s> [webpack.Progress] 37% building 1/2 entries 3300/3339 dependencies 336/1548 modules
/misskey/node_modules/execa/lib/error.js:60
error = new Error(message);
^

Error: Command was killed with SIGKILL (Forced termination): npm run build
at makeError (/misskey/node_modules/execa/lib/error.js:60:11)
at handlePromise (/misskey/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /misskey/scripts/build.js:14:2 {
shortMessage: 'Command was killed with SIGKILL (Forced termination): npm run build',
command: 'npm run build',
escapedCommand: 'npm run build',
exitCode: undefined,
signal: 'SIGKILL',
signalDescription: 'Forced termination',
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
1 error occurred:
* Status: The command '/bin/sh -c apk add --no-cache $BUILD_DEPS && git submodule update --init && yarn install && yarn build && rm -rf .git' returned a non-zero code: 1, Code: 1

Edit

Pub: 30 Apr 2022 21:26 UTC

Views: 75