Could not find a declaration file for module 'react/jsx-runtime'. '/mnt/c/Users/91966/programming/cloner/cookie-development/frontend/node_modules/react/jsx-runtime.js' implicitly has an 'any' type. code example

Example 1: Could not find a declaration file for module 'react'

yarn add eslint-import-resolver-typescript -D

// Add in .eslintrc
"settings": {
        "import/resolver": {
            "typescript": {}
        }
    }

Example 2: Could not find a declaration file for module 'react'.

When a module is not yours - try to install types from @types:

npm install -D @types/module-name