diff --git a/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts b/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts index a99c756645c4..d0915b76265a 100644 --- a/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts +++ b/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts @@ -90,7 +90,11 @@ function addCypressToWebpackEslintRulesInPlace (webpackConfig: Configuration) { if (eslintPlugin) { const cypressGlobalsRules = cypressGlobals - .reduce((acc, global) => ({ ...acc, [global]: 'writable' }), {}) + .reduce>((acc, global) => { + acc[global] = 'writable' + + return acc + }, {}) eslintPlugin.options.baseConfig = { ...eslintPlugin.options.baseConfig,