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

Blank workshop ID causes build tool error #912

Open
Soyvolon opened this issue Apr 13, 2022 · 0 comments
Open

Blank workshop ID causes build tool error #912

Soyvolon opened this issue Apr 13, 2022 · 0 comments

Comments

@Soyvolon
Copy link

Basic Information

When there is only a single map in the _presets.json file, a workshopId must be set otherwise gulp throws an assertion error when checking parameters. Setting the workshop ID to 0 is a workaround for this error.

As far as I can tell, having multiple configurations requires at least one to have a workshop ID value in order for all maps to build, even those that don't have workshop IDs. Leaving all workshop IDs blank, or in the case of a single map, the only workshop ID blank, will cause the following error when any command is run (including clean).

PS C:\Users\Soyvolon\source\repos\KP-Liberation\_tools> npx gulp clean
[18:57:08] Requiring external module ts-node/register

C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\undertaker\lib\helpers\normalizeArgs.js:20
  assert(flattenArgs.length, 'One or more tasks should be combined using series or parallel');
  ^
AssertionError [ERR_ASSERTION] [ERR_ASSERTION]: One or more tasks should be combined using series or parallel
    at normalizeArgs (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\undertaker\lib\helpers\normalizeArgs.js:20:3)
    at Gulp.series (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\undertaker\lib\series.js:13:14)
    at Object.<anonymous> (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\gulpfile.ts:171:28)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Module.m._compile (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\ts-node\src\index.ts:422:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Object.require.extensions.<computed> [as .ts] (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\ts-node\src\index.ts:425:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant