diff --git a/packages/web-react/src/utils/htmlParser.ts b/packages/web-react/src/utils/htmlParser.ts index 6cfabde088..b85c6fa6f7 100644 --- a/packages/web-react/src/utils/htmlParser.ts +++ b/packages/web-react/src/utils/htmlParser.ts @@ -1,3 +1,5 @@ +import warning from '../common/utilities/warning'; + let parse = null; import('html-react-parser') @@ -5,8 +7,8 @@ import('html-react-parser') parse = htmlReactParser; }) .catch(() => - // eslint-disable-next-line no-console - console.warn( + warning( + false, '`html-react-parser` is not installed and will be required in the next major version. Please install, missing peer dependency.', ), );