Cannot find ESLint loader (eslint-loader)

When running ´npm start´ i get this error in the console:

package.json start:

"scripts": {
  "start": "craco start"
}

craco.config.js file:

const million = require('million/compiler')


const cracoConfig = {
  webpack: {
    plugins: { add: [million.webpack({ auto: true })] },
  },
  typescript: {
    enableTypeChecking: true
  },
};

the error itself:

> start
> craco start

craco:  *** Cannot find ESLint loader (eslint-loader). ***
(node:3916) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:3916) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

I tried doing the ./node_modules/.bin/eslint --init but it didn’t fix the problem.