middlewaresPath option doesn’t work