tree-cli icon indicating copy to clipboard operation
tree-cli copied to clipboard

constantly crashing on exception

Open hotfusion opened this issue 1 year ago • 0 comments

This module is not working as supposed to, it crash and exit node application due to the error: TypeError: Cannot read properties of undefined (reading 'sort')

tree.js:315:27

if (_flags.directoryFirst) {
          parent.children.sort(_comparePriority);
        }

the callback onError does nothing when exception occurred but instead it crash my application:

onError({path,err}){
       
}

hotfusion avatar Nov 29 '23 10:11 hotfusion