langgenius/dify · error · Error

Invalid value for --max-rounds

Error message

Invalid value for --max-rounds

What it means

Error "Invalid value for --max-rounds" thrown in langgenius/dify.

Source

Thrown at packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts:81

      options.batchSize = value
      i += 1
      continue
    }

    if (arg === '--batch-iterations') {
      const value = Number(argv[i + 1])
      if (!Number.isInteger(value) || value <= 0)
        throw new Error('Invalid value for --batch-iterations')

      options.batchIterations = value
      i += 1
      continue
    }

    if (arg === '--max-rounds') {
      const value = Number(argv[i + 1])
      if (!Number.isInteger(value) || value <= 0) throw new Error('Invalid value for --max-rounds')

      options.maxRounds = value
      i += 1
      continue
    }

    throw new Error(`Unknown option: ${arg}`)
  }

  return options
}

function getTypeCheckBuildInfoPath(projectPath: string): string {
  const hash = createHash('sha1').update(projectPath).digest('hex').slice(0, 16)

  return path.join(TYPECHECK_CACHE_DIR, `${hash}.tsbuildinfo`)
}

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts:81 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12). Data as JSON: /api/errors/8d342d00ac393c25. Report an issue: GitHub.