Error `Cannot read property '1' of null` when running `jake -T`
mgrandrath opened this issue · 4 comments
mgrandrath commented
After upgrading to v10.8.4 I received the error message Cannot read property '1' of null
when running jake -T
. I could trace back the error to this line introduced in d39f72d.
The problem seems to be that the regex does not match this action in jake.js
. The issue can be fixed by providing a name to the function:
…
case 'directory':
action = function action () { // <-- add name `action` here
jake.mkdirP(name);
};
task = new DirectoryTask(name, prereqs, action, opts);
break;
…
falsefalse commented
mde commented
Does that other PR fix this problem, or no?
falsefalse commented
Yes it does
mde commented
Awesome, thank you!