jakejs/jake

Error `Cannot read property '1' of null` when running `jake -T`

mgrandrath opened this issue · 4 comments

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;
mde commented

Does that other PR fix this problem, or no?

Yes it does

mde commented

Awesome, thank you!