{"record":{"id":"456afd951bca80cb","repo":"remotion-dev/remotion","slug":"the-patch-eslint-js-script-has-only-been-tested-wi","errorCode":null,"errorMessage":"The patch-eslint.js script has only been tested with ESLint version 6.x, 7.x, and 8.x, and 9.x. (Your version: ${eslintPackageVersion})\nConsider reporting a GitHub issue:\nhttps://github.com/remotion-dev/remotion/issues","messagePattern":"The patch-eslint\\.js script has only been tested with ESLint version 6\\.x, 7\\.x, and 8\\.x, and 9\\.x\\. \\(Your version: (.+?)\\)\nConsider reporting a GitHub issue:\nhttps://github\\.com/remotion-dev/remotion/issues","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/eslint-config/src/patch-eslint.ts","lineNumber":278,"sourceCode":"\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 {\n\t\tConfigArrayFactory = require(configArrayFactoryPath!).ConfigArrayFactory;\n\t}\n\n\tif (!ConfigArrayFactory.__patched) {\n\t\tConfigArrayFactory.__patched = true;\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any","sourceCodeStart":260,"sourceCodeEnd":296,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/eslint-config/src/patch-eslint.ts#L260-L296","documentation":"The ESLint patcher has been tested only with ESLint major versions 6 through 9. If the installed ESLint major version falls outside this range (e.g., ESLint 5.x or 10.x), this error is thrown with the detected version. This is a hard guard regardless of the minimum-version check.","triggerScenarios":"Installing ESLint 10 (too new), ESLint 5 or earlier (too old), or a future major version the patcher has not been updated for.","commonSituations":"Early adoption of a new ESLint major before Remotion adds support, legacy projects with very old ESLint, or a transitive dependency forcing an unusual ESLint major.","solutions":["Pin ESLint to a supported major (6–9): `npm install eslint@^9.0.0`.","Upgrade `@remotion/eslint-config` to the latest version which may support newer majors.","If on a future version, report the issue to Remotion or temporarily downgrade ESLint."],"exampleFix":"// before\n\"devDependencies\": { \"eslint\": \"^10.0.0\" }\n\n// after\n\"devDependencies\": { \"eslint\": \"^9.0.0\" }","handlingStrategy":"validation","validationCode":"const eslintVersion = require('eslint/package.json').version;\nconst major = Number(eslintVersion.split('.')[0]);\nif (major < 6 || major > 9) {\n  throw new Error(`ESLint ${major}.x is not supported by the patcher. Use 6.x–9.x.`);\n}","typeGuard":null,"tryCatchPattern":"try {\n  require('@remotion/eslint-config/patch-eslint');\n} catch (err) {\n  if (err instanceof Error && err.message.includes('only been tested')) {\n    console.error('ESLint major version unsupported. Pin to 6.x–9.x.');\n  } else {\n    throw err;\n  }\n}","preventionTips":["Pin ESLint to a supported major version (6–9).","Wait for Remotion to add support before upgrading to ESLint 10+.","Check the Remotion changelog for ESLint compatibility updates."],"tags":["eslint","eslint-config","version-compat","unsupported-version"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}