diff --git a/packages/react-dom/src/client/ReactDOMRoot.js b/packages/react-dom/src/client/ReactDOMRoot.js index c7820a703a0b0..55c340be7dff4 100644 --- a/packages/react-dom/src/client/ReactDOMRoot.js +++ b/packages/react-dom/src/client/ReactDOMRoot.js @@ -81,8 +81,8 @@ const defaultOnRecoverableError = reportError : (error: mixed) => { // In older browsers and test environments, fallback to console.error. - // eslint-disable-next-line react-internal/no-production-logging, react-internal/warning-args - console.error(error); + // eslint-disable-next-line react-internal/no-production-logging + console['error'](error); }; function ReactDOMRoot(internalRoot: FiberRoot) {