TypeError: Cannot read properties of undefined (reading 'replace')
at DirectoryTask._getParams (/Users/falsefalse/.nvm/versions/node/v16.16.0/lib/node_modules/jake/lib/task/task.js:426:10)
at DirectoryTask.get params [as params] (/Users/falsefalse/.nvm/versions/node/v16.16.0/lib/node_modules/jake/lib/task/task.js:97:17)
at EventEmitter.Object.assign.showAllTaskDescriptions (/Users/falsefalse/.nvm/versions/node/v16.16.0/lib/node_modules/jake/lib/jake.js:127:27)
at Program.run (/Users/falsefalse/.nvm/versions/node/v16.16.0/lib/node_modules/jake/lib/program.js:250:19)
at EventEmitter.Object.assign.run (/Users/falsefalse/.nvm/versions/node/v16.16.0/lib/node_modules/jake/lib/jake.js:323:17)
at Object.<anonymous> (/Users/falsefalse/.nvm/versions/node/v16.16.0/lib/node_modules/jake/bin/cli.js:31:10)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
Not sure if exactly
directory
orpackageTask
related, I have both and it breaks when Ijake -T
, all tasks run well still.So looks like it needs not to break in the negative case for the regexp, when nothing was matched. This fixes the problem.
Logged
this.action
andthis.action.name
andthis.action.toString()
values that break it.Original stacktrace