{"record":{"id":"68dc226a0a83ed6d","repo":"remotion-dev/remotion","slug":"remotion-5-requires-eslint-mineslintversion-or","errorCode":null,"errorMessage":"Remotion 5 requires ESLint ${minEslintVersion} or later. You currently have ESLint ${eslintPackageVersion}.","messagePattern":"Remotion 5 requires ESLint (.+?) or later\\. You currently have ESLint (.+?)\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/eslint-config/src/patch-eslint.ts","lineNumber":271,"sourceCode":"\tconst eslintPackageVersion = eslintPackageObject.version;\n\tconst versionMatch = /^([0-9]+)\\.([0-9]+)\\./.exec(eslintPackageVersion);\n\tif (!versionMatch) {\n\t\tthrow new Error('Unable to parse ESLint version: ' + eslintPackageVersion);\n\t}\n\n\tconst eslintMajorVersion = Number(versionMatch[1]);\n\tconst eslintMinorVersion = Number(versionMatch[2]);\n\tconst minEslintVersion = getMinEslintVersion();\n\tif (minEslintVersion !== null) {\n\t\tconst minVersionMatch = /^([0-9]+)\\.([0-9]+)\\./.exec(minEslintVersion)!;\n\t\tconst minMajorVersion = Number(minVersionMatch[1]);\n\t\tconst minMinorVersion = Number(minVersionMatch[2]);\n\t\tif (\n\t\t\teslintMajorVersion < minMajorVersion ||\n\t\t\t(eslintMajorVersion === minMajorVersion &&\n\t\t\t\teslintMinorVersion < minMinorVersion)\n\t\t) {\n\t\t\tthrow new Error(\n\t\t\t\t`Remotion 5 requires ESLint ${minEslintVersion} or later. You currently have ESLint ${eslintPackageVersion}.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tif (!(eslintMajorVersion >= 6 && eslintMajorVersion <= 9)) {\n\t\tthrow new Error(\n\t\t\t'The patch-eslint.js script has only been tested with ESLint version 6.x, 7.x, and 8.x, and 9.x.' +\n\t\t\t\t` (Your version: ${eslintPackageVersion})\\n` +\n\t\t\t\t'Consider reporting a GitHub issue:\\n' +\n\t\t\t\t'https://github.com/remotion-dev/remotion/issues',\n\t\t);\n\t}\n\n\tlet ConfigArrayFactory;\n\tif (eslintMajorVersion >= 8) {\n\t\tConfigArrayFactory = require(eslintrcBundlePath!).Legacy.ConfigArrayFactory;\n\t} else {","sourceCodeStart":253,"sourceCodeEnd":289,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/eslint-config/src/patch-eslint.ts#L253-L289","documentation":"When running Remotion 5, the ESLint patcher enforces a minimum ESLint version (8.57.0 by default, or a value from `MIN_ESLINT_VERSION` if v5 breaking changes are enabled). If the installed ESLint major or minor version is below this minimum, this error is thrown with both the required and installed versions.","triggerScenarios":"Installing Remotion 5 alongside an older ESLint (e.g., 6.x or 7.x), or a project that pinned ESLint to an old version for compatibility with other tooling.","commonSituations":"Upgrading Remotion from v4 to v5 without upgrading ESLint, monorepos where a shared ESLint version is older than 8.57.0, or projects with other tools that depend on older ESLint.","solutions":["Upgrade ESLint to at least the version shown in the error message (e.g., `npm install eslint@^8.57.0`).","If you are not ready for Remotion 5, stay on Remotion 4 which has a lower ESLint minimum.","In a monorepo, hoist and upgrade ESLint for all workspaces."],"exampleFix":"// before\n\"devDependencies\": { \"eslint\": \"^7.32.0\", \"@remotion/eslint-config\": \"^5.0.0\" }\n\n// after\n\"devDependencies\": { \"eslint\": \"^8.57.0\", \"@remotion/eslint-config\": \"^5.0.0\" }","handlingStrategy":"validation","validationCode":"const {version} = require('eslint/package.json');\nconst [major, minor] = version.split('.').map(Number);\nif (major < 8 || (major === 8 && minor < 57)) {\n  throw new Error(`ESLint ${version} is too old for Remotion 5. Upgrade to >=8.57.0.`);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Upgrade ESLint to at least 8.57.0 before upgrading to Remotion 5.","Lock ESLint version in package.json to avoid accidental downgrades.","Check Remotion 5 migration guide for all peer dependency changes."],"tags":["eslint","eslint-config","version-compat","remotion-5"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}