'Has any one got this error using webpack 5 ? ERROR in ESLint is not a constructor?

Been going in and out of rabbit holes for a few hours trying to find out why this keeps happening on my build. Has anyone else seen this error before ?

The elint is showing linting errors so it's executing, but showing this error at the end of the build.

ERROR in ESLint is not a constructor

Dependancies

"eslint": "~8.11.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "~15.0.0",
"eslint-config-airbnb-typescript": "~16.1.0",
"eslint-config-prettier": "~8.3.0",
"eslint-import-resolver-alias": "~1.1.2",
"eslint-plugin-import": "~2.25.4",
"eslint-plugin-jsx-a11y": "~6.5.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "~7.28.0",
"eslint-plugin-react-hooks": "~4.3.0",
"eslint-webpack-plugin": "^2.5.4",
"webpack": "~5.65.0",


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source